JS Bin to Sublime Text:禁用popover

时间:2013-06-20 14:08:52

标签: html ide jsbin

这是我在JS Bin中为我的网站创建弹出窗口的代码:

http://jsbin.com/akutis/5/edit

(请务必点击“使用JS运行”以使其正常工作)

当我将代码导入Sublime Text编辑器时,我创建了一个popover.js文件,我从JS Bin中粘贴了jquery代码。

然后我只需在头部添加以下链接到我自己的jquery文件:

<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

<link href="http://twitter.github.io/bootstrap/assets/css/bootstrap.css" rel="stylesheet" type="text/css" />

<script src="http://twitter.github.io/bootstrap/assets/js/bootstrap.js"></script>

<!--just adding the following line-->
<script src="popover.js"></script>

<meta charset=utf-8 />
<title>JS Bin</title>
</head>

但是,当我在本地运行文件时,弹出框不起作用。不确定是什么导致了这个问题。是否有翻译问题(JS Bin - &gt; local)我没有解决?如果我只是简单地复制和粘贴,代码怎么能不再起作用?

坦克非常适合你的帮助。

0 个答案:

没有答案
相关问题