Skip to content

JS加载顺序导致变量未定义#2

Open
PagePanCN wants to merge 2 commits intobuxia97:masterfrom
PagePanCN:master
Open

JS加载顺序导致变量未定义#2
PagePanCN wants to merge 2 commits intobuxia97:masterfrom
PagePanCN:master

Conversation

@PagePanCN
Copy link
Copy Markdown

user.js里使用了head中js定义的变量;不知道为啥,底部的user.js记载顺序先于head的js;导致user.js里所有在head中定义的变量都成了未定义了。最后就报错了。因此,我将那些变量都移到了,加载user.js的上方。

@buxia97
Copy link
Copy Markdown
Owner

buxia97 commented Feb 2, 2020

很感谢你的提交,这确实是个很好的解决办法,不过源于我听到了很多覆盖后不生效的反馈,于是删除了非管理员用户的判断,所以你的提交无法覆盖,见谅。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants