http://segmentfault.com/q/1010000002484757
这个问题感觉并没有说的太清楚。
引用高德地图的SDK就会有警告。
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.
像这种需要加载js,或者操作dom的插件,改怎么和angularjs一起用呢?
异步JS加载和执行document.write时document已经close,这是错误的原因;document.open会重置整个document;应该修改代码用非document.write的DOM操作,比如.innerHTML和appendChild。