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

异步加载js文件的时候发现问题 #22

Closed
xw332 opened this issue Jun 10, 2014 · 0 comments
Closed

异步加载js文件的时候发现问题 #22

xw332 opened this issue Jun 10, 2014 · 0 comments
Labels

Comments

@xw332
Copy link

xw332 commented Jun 10, 2014

Mock.mockjax里有一句jQuery.ajaxPrefilter("script", prefilter);

$('div').load('demo.html');
异步加载js文件的时候,默认会调用json解析html里的js链接,然后报错
Uncaught SyntaxError: Unexpected token /

测试代码我传到网上了:
http://demo.qpdiy.com/xw/other/Mock

@nuysoft nuysoft added the bug label Jun 17, 2014
nuysoft pushed a commit that referenced this issue Jun 17, 2014
@nuysoft nuysoft closed this as completed Jun 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants