jQuery mobile报错 Uncaught TypeError: Cannot read property 'concat' of undefined

时间:2017-07-02 18:05:52   收藏:0   阅读:2204

写一个jQuery mobile的demo

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="css/jquery.mobile-1.4.5.min.css" />
    </head>
    <body>
        <div data-role="page">
            <div data-role="header">页眉</div>
            <div data-role="content">内容</div>
            <div data-role="footer">页脚</div>
        </div>
        <script src="js/jquery.min.js"></script>
        <script src="js/jquery.mobile-1.4.5.js"></script>
    </body>
</html>

用浏览器打开,发现没有样式,打开控制台发现报了一个错误

技术分享

上Stack Overflow查了一下,是因为jQuery mobile和jQuery的版本不匹配,我当前的jQuery mobile的版本是1.4.5,jQuery的版本3.2.1, jQuery重新下2版本以下的试试,我下了1.9.1是可行的

 

原文:http://www.cnblogs.com/zhengmiaohua/p/7106570.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!