0x800a01b6 - JavaScript运行时错误:对象不支持属性或方法'tabs'

Bar*_*ens 3 javascript c#-4.0 asp.net-mvc-4

我有以下代码:

    <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>
Run Code Online (Sandbox Code Playgroud)

出于某种原因,我不断收到错误:

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'tabs'
Run Code Online (Sandbox Code Playgroud)

我一直在搜索谷歌,在这里,我似乎无法找到解决方案.

谁能帮我?

sun*_*nny 6

它没有发生在我身上,工作得很好!也许,你的jquery在某个地方是冲突的.尝试使用 -

<script>
$m=jQuery.noConflict();
</script>
<script type="text/javascript">
    $m(document).ready(function () {
        $m('#tabsWithStyle').tabs();
    });
</script>
Run Code Online (Sandbox Code Playgroud)