利用ui-router时chrome报错,火狐正常
在template是chrome没问题,用templateUrl是chrome就报错了,求大神解救。
>
4angular.js:13523 Possibly unhandled rejection: {}(anonymous function) @ angular.js:13523(anonymous function) @ angular.js:10199processChecks @ angular.js:16004(anonymous function) @ angular.js:16010Scope.$eval @ angular.js:17279Scope.$digest @ angular.js:17095Scope.$apply @ angular.js:17387bootstrapApply @ angular.js:1747invoke @ angular.js:4658doBootstrap @ angular.js:1745bootstrap @ angular.js:1765angularInit @ angular.js:1650(anonymous function) @ angular.js:30973trigger @ angular.js:3156defaultHandlerWrapper @ angular.js:3446eventHandler @ angular.js:3434
angular.js:11726 XMLHttpRequest cannot load file:///C:/Users/lWX349253/Downloads/ui-router-demo-master/aa/sub.html. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.(anonymous function) @ angular.js:11726sendReq @ angular.js:11491serverRequest @ angular.js:11201processQueue @ angular.js:15979(anonymous function) @ angular.js:16014Scope.$eval @ angular.js:17279Scope.$digest @ angular.js:17095Scope.$apply @ angular.js:17387(anonymous function) @ angular.js:19216completeOutstandingRequest @ angular.js:5862(anonymous function) @ angular.js:6138
angular.js:13523 Possibly unhandled rejection: {"data":null,"status":-1,"config":{"method":"GET","transformRequest":[null],"transformResponse":[null],"cache":{},"headers":{"Accept":"text/html"},"url":"aa/sub.html"},"statusText":""}