首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >plunker总是引用github脚本链接

plunker总是引用github脚本链接
EN

Stack Overflow用户
提问于 2014-10-22 21:07:41
回答 1查看 374关注 0票数 0

由于以下错误消息,我无法执行此柱塞程序:

但是我并没有在本地引用github的accordion.js!

我有什么地方错了,我得到了这个消息?

代码语言:javascript
复制
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

EN

回答 1

Stack Overflow用户

发布于 2014-10-22 21:51:51

首先,您忘记了将引导js、jquery和ui- bootstrap -tpls脚本添加到index.html

其次,您只需要ui.bootstrap依赖项。

代码语言:javascript
复制
var app = angular.module('plunker',['ui.bootstrap']);

最后,这里是一个有效的插入器:http://plnkr.co/edit/Hntx2YihOb3U0HoGMQAQ?p=preview

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26508173

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档