[英]How can I include ui-bootstrap in a plunker?
我創建了以下plunker:
http://plnkr.co/edit/c0pGkinMpXBBT1dpLxAo?p=preview
但這給了我一個錯誤,我嘗試包含對ui-bootstrap的引用
<head>
<meta charset="utf-8" />
<title>AngularJS Plunker</title>
<script>document.write('<base href="' + document.location + '" />');</script>
<link rel="stylesheet" href="style.css" />
<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<script data-require="angular.js@1.0.x" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js" data-semver="1.0.7"></script>
<script src="//github.com/angular-ui/bootstrap/blob/gh-pages/ui-bootstrap-0.4.0.js"></script>
<script src="app.js"></script>
</head>
我對創建掠奪者的經驗不是很豐富。 有人可以給我一些關於我做錯了什么的建議
在大多數情況下,您可以從右側欄中找到並添加外部庫(從看起來像書的小按鈕),但我認為您的錯誤源於您鏈接到GitHub頁面而不是實際腳本。
正確的鏈接應該是: https : //raw.github.com/angular-ui/bootstrap/gh-pages/ui-bootstrap-0.4.0.js
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.