plunker总是指github脚本链接

时间:2014-10-22 13:07:41

标签: angularjs plunker

由于此错误消息,我无法执行此plunker:

但是我从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

1 个答案:

答案 0 :(得分:0)


首先,您忘记了将bootstrap js,jquery和ui-bootstrap-tpls脚本添加到index.html中 其次,你只需要ui.bootstrap依赖。

var app = angular.module('plunker',['ui.bootstrap']);

最后,这里有一名工作人员: http://plnkr.co/edit/Hntx2YihOb3U0HoGMQAQ?p=preview