0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'tabs'

匿名 (未验证) 提交于 2019-12-03 00:56:02

问题:

I have the following code:

    <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' 

I've been searching Google and here as well, I can't seem to find a solution.

Can anyone help me?

回答1:

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> 


易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!