Replies: 1 comment
-
|
因为是server-side rendering,渲染出来的是静态的HTML |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
经api.nsmao.net提供的API获取用户IP地址和归属地,返回json格式数据做来访者显示;

接口经确认无异常且返回值正确无误;
render.console.log可以正常打印输出,p标签正常渲染;
componentDidMount.console.log期望打印"WelcomeCard 已载入!"无输出,F12无相关报错无相关警告;
目测componentDidMount函数根本没进入,但是前端p标签能正常渲染,理论上componentDidMount应该能被触发才对吧,蛮奇怪的(
Beta Was this translation helpful? Give feedback.
All reactions