由于以下错误消息,我无法执行此柱塞程序:
但是我并没有在本地引用github的accordion.js!
我有什么地方错了,我得到了这个消息?
Refused to execute script from 'https://github.com/angular-ui/bootstrap/blob/master/src/accordion/accordion.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. run.plnkr.co/:1
Uncaught Error: [$injector:modulerr] Failed to instantiate module plunker due to:
Error: [$injector:modulerr] Failed to instantiate module ui.bootstrap.accordion due to:
Error: [$injector:nomod] Module 'ui.bootstrap.accordion' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.http://plnkr.co/edit/WYkxKqUOZAhT07HyuTOh?p=preview
发布于 2014-10-22 21:51:51
首先,您忘记了将引导js、jquery和ui- bootstrap -tpls脚本添加到index.html
其次,您只需要ui.bootstrap依赖项。
var app = angular.module('plunker',['ui.bootstrap']);最后,这里是一个有效的插入器:http://plnkr.co/edit/Hntx2YihOb3U0HoGMQAQ?p=preview
https://stackoverflow.com/questions/26508173
复制相似问题