[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

pagelet用innerHTML方式插入HTML,script标签不执行 #20

Open
charlenelu opened this issue Jun 12, 2015 · 3 comments
Open

pagelet用innerHTML方式插入HTML,script标签不执行 #20

charlenelu opened this issue Jun 12, 2015 · 3 comments

Comments

@charlenelu
Copy link

例如:
quckling内容包含如下形式

<script type="text/javascript" src="http://www.hao123.com/js/messenger.js"></script>

只有dom写入,但此js不被加载。

@allen-zh allen-zh changed the title quickling局部刷新的innerHTML方式,当包含引入js文件代码时,不会加载该js文件 quickling局部刷新、pagelet用innerHTML方式加载dom,script标签不执行 Jun 12, 2015
@allen-zh
Copy link
Member

image

http://www.w3.org/TR/2008/WD-html5-20080610/dom.html#innerhtml0
script elements inserted using innerHTML do not execute when they are inserted.
考虑通过其他方式加载dom,或者对script标签做处理

@zhangyuanwei
Copy link
Contributor

你俩一问一答很Happy嘛。

@charlenelu
Copy link
Author

@zhangyuanwei 惊现袁老师~~更Happy呀! 哈哈~

@allen-zh allen-zh changed the title quickling局部刷新、pagelet用innerHTML方式加载dom,script标签不执行 quickling局部刷新、pagelet用innerHTML方式更新dom,script标签不执行 Jul 13, 2015
@allen-zh allen-zh changed the title quickling局部刷新、pagelet用innerHTML方式更新dom,script标签不执行 pagelet用innerHTML方式插入HTML,script标签不执行 Jan 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants