![](/img/trans.png)
[英]js/jquery - event.preventdefault doesn't seem to work in firefox
[英]sourceURL in Firefox 24 doesn't seem to work
我无法//# sourceURL
注释在Firefox 24中工作。
这是test.html :
<html>
<script src="test.js"></script>
这是test.js :
document.write('<p>hello</p>');
//# sourceURL=one.js
var fn;
fn = eval("(function two() { console.log(1); })\n//# sourceURL=two.js");
fn.call();
fn = new Function([], "console.log(2);\n//# sourceURL=three.js");
fn.call();
如果可行,我应该在Firefox调试器中看到三个文件: one.js
, two.js
和three.js
。 但是,调试器向我显示了一个文件test.js
:
关于我错过了什么的任何线索?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.