MichaelBelgium
That option is also the variable name "showFooterViewList"
The source code will see if showFooterViewList is "1" or not
If it is 1, this function will continue to run
external url access when o.posts()[0] return value is not 1 ~ 10 floor information (from the forum click in is there)
The code here is probably around a keyword "showFooterViewList" can search to find the
As I said before, when showFooterViewList is 1, it will execute the function of loading the component (which means the above)
external url access if statement in o.posts()[0] is undefined, resulting in . id will report an error.
That's pretty much what it looks like.
Simply put, external url access will report an error if the transmitted value is not 1 floor (because the server only transmits the last 10 messages when the external link is accessed)
In this case o.posts()[0] is undefined, o.posts()[0].id will report an error
English is not good, translated from Chinese by DEEPL
那个选项也就是变量名"showFooterViewList"
源代码中是会看showFooterViewList是否为"1"
如果为1将继续运行本函数
外部url访问的时候o.posts()[0]返回值是没有110楼的信息的(从坛内点进去是有的)
这里的代码大概是周围有一个关键字"showFooterViewList"可以搜一下找到的
前面说了当showFooterViewList为1的时候会执行加载组件(也就是指上面那个)的函数
外部url访问的时候 if语句中o.posts()[0]是undefined,导致.id会报错。
差不多就是这个样子。
简单地说,外部url访问的时候如果传输的值没有1楼将会报错(因为外链访问的时候服务器只传输最近的10条信息)
此情况下o.posts()[0] 为 undefined,o.posts()[0].id就会报错