When using angularjs, use ng-include to introduce an external template (using the script tag), and then use ng-include again to use the imported template (using the id operation), but there is no response. What is wrong?
我想大声告诉你2017-05-15 17:16:02
1.ng-include,如果单纯指定地址,必须要加引号
2.ng-include,加载外部html,script标签中的内容不执行,不能加载,如果需要控制器处理需要在主页中注册
3.ng-include,加载外部html中含有style标签样式可以识别
4.ng-inclue,记载外部html中的link标签可以加载