jQuery   发布时间:2022-03-30  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了jquery-mobile – 使用面板时jQuery Mobile 1.3.2错误大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试使用jQuery Mobile 1.3.2实现面板功能.这是我的代码

<div data-role="page" id="homePage">
    <section data-role="panel" class="row">
        PANEL HERE..
    </section>

    <section data-role="header" class="row">
        <div class="large-12 columns">
            <h3>
                Header..
            </h3>               
        </div>          
    </section>

    <section data-role="content" class="row">
        <div class="large-12 columns">
            CONTENT..               
        </div>          
    </section>

    <section data-role="footer" class="row">
        <div class="large-12 columns">
            FOOTER..                
        </div>          
    </section>

    <script type="text/javascript">
        $(function ()
        {

        }());
    </script>
</div>

当我运行这是一个浏览器时,我收到一个错误

$.data(…)未定义

我已将其追溯到jquery.mobile-1.3.2.js的第10330行:

var $theme = $.data( page[0],"mobilePage" ).options.theme,

我错过了什么?

解决方法

我看到jQuery移动面板与jQuery 2.0不兼容.

你收到了错误

尝试降级到jQuery 1.9它可以使用它.

演示:http://jsfiddle.net/IrvinDominin/3wUts/

大佬总结

以上是大佬教程为你收集整理的jquery-mobile – 使用面板时jQuery Mobile 1.3.2错误全部内容,希望文章能够帮你解决jquery-mobile – 使用面板时jQuery Mobile 1.3.2错误所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。