Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrat.js load放在在加载js时未指定编码,某些情况下会导致js乱码 #69

Open
xiaguangme opened this issue Jun 5, 2016 · 2 comments
Assignees

Comments

@xiaguangme
Copy link

xiaguangme commented Jun 5, 2016

前两天搞了个scrat.js 加载js在IE下某些时候乱码。问题总结在
代码修改如下:

if (isScript) {
    node.type = 'text/javascript';
    node.async = 'async';
    node.charset = 'UTF-8';
    node.src = url;
}
@xiaguangme
Copy link
Author

由于问题出现的前提条件比较复杂,上面的那条解释并没有说清楚
附上我解决这个问题的 blog

@atian25
Copy link
Member

atian25 commented Jun 8, 2016

@zack.lin 看看

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

No branches or pull requests

3 participants