今天上午遇到了一个问题:Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened.
单独调用 a.jsp这个页面是没有任何问题的,一旦由其它页面再次通过$("#id").load(“a.jsp")就会报这个错误。
关键问题在于,在IE9下面,它没有任何提示,有时候直接 就是 script 拒绝访问
在chrom上面就提示”Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened. “
通过这提示,我才看到了黎明。
最后总结:(1)js调用 了document.write
(2) 或者通过js 自动创建script标签加载内容
都可能出现以上错误,至于为什么我也没想明白。