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

换行问题 #1

Open
rambo-panda opened this issue Sep 9, 2014 · 0 comments
Open

换行问题 #1

rambo-panda opened this issue Sep 9, 2014 · 0 comments

Comments

@rambo-panda
Copy link

https://github.com/goddyZhao/GPosts/blob/master/javascript/%E5%8A%A8%E6%80%81%E4%BF%AE%E6%94%B9script%E6%A0%87%E7%AD%BE%E4%B8%AD%E7%9A%84src%E5%B1%9E%E6%80%A7%E5%AD%98%E5%9C%A8%E7%9A%84%E9%97%AE%E9%A2%98.md

这根换行有关系吗? 根本原因就是在于 浏览器对js的渲染顺序。 说说自己的观点:
1: 更改script的src 这回直接造成页面重新渲染。(鬼知道你js里都有什么) 更重要的是 直接更改现有js逻辑。
2:如果又src 并且有inline js 肯定是先执行src。 如果两者都执行。 如果两者又功能内容 肯定会造成冲突。这就好比min文件一样。
3: 至于空格 换行问题 我在本地尝试 完全没有问题。加不加都一样。 测试环境:chrome 39 dev && firefox 33

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

1 participant