环境
为了自动压缩和连接我的js文件,我使用这个工具。
安装和配置后,下面的代码将返回一个压缩的js,并与所有JS文件夹 project
问题
在我的页面中,有以下代码:
loaderPhotosPage = function(url) {
$.getScript('/Scripts/pages/project-projectPhotos/js', function() {
alert(url); //This code is not executed!! Here's the problem;
});
};
alert
从未执行!
测试
为了使用 Google Chrome 开发人员工具模拟测试工具,我得到了以下结果:
在 Google Chrome 开发人员上执行的代码
查看控制台和标头。执行非常成功!
现在预览结果
HTTP 状态为已取消,为什么?然而控制台中的代码正常运行(text: success)
我把js 文件在 此 链接处完成。
再测试一下:
看到get了,链接的脚本运行正常!
感谢您的帮助!
Environment
To automate the compression and the junction of my js files, I use this tool.
Once installed and configured, the code below returns a js compressed and concatenated with all the JS folder project
<script src="@BundleTable.Bundles.ResolveBundleUrl("~/Scripts/pages/project-projectPhotos/js")"></script>
Problem
In my page, have the following code:
loaderPhotosPage = function(url) {
$.getScript('/Scripts/pages/project-projectPhotos/js', function() {
alert(url); //This code is not executed!! Here's the problem;
});
};
alert
is never executed!
Tests
To simulate a test tool using Google Chrome Developer Tools, I got the following results:
Code executed on Google Chrome Developer
Look at the console, and the header. The execution is very successful!
Now the preview result
The HTTP status is as canceled, why? Yet the code in the console was running normally (text: success)
I put the js file complete at this link.
Another test:
See the get, with the link of the script is running normally!
Thanks for the help!
发布评论
评论(1)
取消状态是当前开发频道 Google Chrome 的问题。它已在上游修复,并将相应地传播到开发通道。
https://bugs.webkit.org/show_bug.cgi?id=72873
The canceled status is an issue with current dev channel Google Chrome. It has been fixed upstream and will propagate to the dev channel accordingly.
https://bugs.webkit.org/show_bug.cgi?id=72873