【发布时间】:2011-05-26 13:30:29
【问题描述】:
只是想在网站上添加一个 jQuery 进度条。 我做了 jquery 文档所说的添加一个 id = progressbar 的 div
<div id="progressbar"></div>
那么我有:
<script src="include/jquery-1.5.1.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#progressbar').progressbar({ value: 37 }); //dies here
});
但我看到对象在 IE 中不支持此属性或方法。它指向"21" char 3 行,也就是那一行:
$('#progressbar').progressbar({ value: 37 }); //dies here
我是否需要执行其他操作才能显示此进度条?
编辑
我还补充了:
<script src="include/jquery-ui-1.8.13.custom.min.js" type="text/javascript"></script>
所以现在我没有看到错误,但我也没有看到进度条...
【问题讨论】:
-
我认为你需要 JQuery UI:jqueryui.com/demos/progressbar
-
@sje397 - 好的,现在我添加了
<script src="include/jquery-ui-1.8.13.custom.min.js" type="text/javascript"></script>并将文件放在我的项目中,现在没有错误......但也没有进度条......
标签: jquery progress-bar