2

如果使用 loadDataWithBaseURL 加载 html/javascript,并将基本 url 设置为本地文件位置,则 $http.get 等函数将导致异常“SECURITY_ERR: DOM Exception 18”

尝试访问 document.cookie 时在 angular.js 中发生这种情况 - 请参阅https://stackoverflow.com/questions/19125196/when-using-loaddatawithbaseurl-an-exception-occurs-when-trying-to-get-or-set -咕咕咕

我已经破解了 angular.js 来捕捉这个异常,但我希望有人有更好的解决方案。

4

0 回答 0