0x800a01b6-JavaScript运行时错误:对象不支持属性或方法“选项卡" [英] 0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'tabs'
本文介绍了0x800a01b6-JavaScript运行时错误:对象不支持属性或方法“选项卡"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有以下代码:
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.9.1.js"></script>
<script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="style.css" />
<div id="tabsWithStyle" class="style-tabs">
<ul>
<li><a href="#facebook">Facebook</a></li>
<li><a href="#twitter">Twitter</a></li>
</ul>
<div id="facebook">
content about Facebook here
</div>
<div id="twitter">
content about Twitter here
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$('#tabsWithStyle').tabs();
});
</script>
出于某种原因,我不断收到错误消息:
For some reason I keep getting the error :
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'tabs'
我一直在搜索Google,在这里也找不到解决方法.
I've been searching Google and here as well, I can't seem to find a solution.
有人可以帮助我吗?
推荐答案
这不是我发生的事,它运作良好! 也许,您的jquery在某处发生冲突.尝试使用-
Its not happening with me,its working good! perhaps, your jquery is conflicting somewhere. try using-
<script>
$m=jQuery.noConflict();
</script>
<script type="text/javascript">
$m(document).ready(function () {
$m('#tabsWithStyle').tabs();
});
</script>
这篇关于0x800a01b6-JavaScript运行时错误:对象不支持属性或方法“选项卡"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文