最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Source mapping in IE. @ sourceURL - Stack Overflow

programmeradmin0浏览0评论

In IE doesn't work //@ sourceURL.

appLoader.loadScriptContent(doc, scriptData.data + "//@ sourceURL=" + scriptData.url );

In Another browsers it's OK. How can I change this code for working in IE ?

In IE doesn't work //@ sourceURL.

appLoader.loadScriptContent(doc, scriptData.data + "//@ sourceURL=" + scriptData.url );

In Another browsers it's OK. How can I change this code for working in IE ?

Share Improve this question edited Jul 30, 2013 at 12:36 Spudley 169k39 gold badges238 silver badges308 bronze badges asked Jul 30, 2013 at 11:29 Geray SuinovGeray Suinov 3,6913 gold badges17 silver badges19 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 16

With the latest update that came with Windows 8.1, IE11 now supports source map: https://all-markup-news.com/whats-new-in-f12-with-windows-8-1-update/ Works in Win7 as well.

UPDATE: See the other answer, IE11 supports //# sourceURL, which is also supported by recent Firefox & Chrome.

Sorry to be the bearer of bad news, but IE does not support source mapping. It's not even IE11 (at least not in the IE11 preview, anyway).

It may come eventually, but for now the answer is you can't do it. Sorry.

That said, as of this moment, it's still an experimental feature even in the browsers that do support it, and is still subject to change -- for example, I note that the syntax is being changed from //@ to //# in the nightlies, due to a clash with IE's existing JS conditional-comment syntax (//@cc_on etc).

发布评论

评论列表(0)

  1. 暂无评论