Error message 'XMLHttpRequest cannot load. Cross origin requests are only supported for HTTP in AngularJS'解决方案1If this is for local development and you are using Chrome, you need to run Chrome with a couple of arguments to relax security like this:"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files --disable-web-security
解决方案2此问题也可以通过使用IIS进行解决。搭建IIS网站将网站文件放进去进行浏览查看。
2.动态添加的DOM中ng-click失效 。 按照下面的格式添加即可