Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/434.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery mobile jQuery移动模板_Jquery Mobile - Fatal编程技术网

Jquery mobile jQuery移动模板

Jquery mobile jQuery移动模板,jquery-mobile,Jquery Mobile,我看不出我做错了什么-我正在尝试创建一个基准jQuery移动模板。查看Firefox中的css面板,没有呈现css <!DOCTYPE HTML> <html lang="en"> <head> <meta charset="utf-8"> <meta name="author" content="Phillip Senn"> <meta name="viewport" content="width=device-width, i

我看不出我做错了什么-我正在尝试创建一个基准jQuery移动模板。查看Firefox中的css面板,没有呈现css

<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="author" content="Phillip Senn">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile template</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css">
<script>
$(document).bind("mobileinit", function() {
    $.mobile.ajaxEnabled = false;
});
</script>
<script src="http://code.jquery.com/mobile/latest/jquery.mobile.min.js"></script>
</head>
<body>
<div data-role="page" id="myPage">
    <div data-role="header">
        <h1>jQuery Mobile Template</h1>
    </div>
    <div data-role="content" id="myContent"> 
        My Content 
    </div>
    <div data-role="footer">
        <h4>Copyright &copy; 2012 Your name here</h4>
    </div>
</div>
</body>
</html>

jQuery移动模板
$(document).bind(“mobileinit”,function(){
$.mobile.ajaxEnabled=false;
});
jQuery移动模板
我的内容
版权及副本;这里有你的名字吗

它只是没有呈现为jQuery移动页面。

您的代码看起来不错,我认为这是最新jQM版本的问题

  • (使用最新的链接库)
  • (使用1.0发布的链接库)
最新的链接库

1.0版本链接库

注:

此外,jQM还不支持jQuery verison 1.7.1

使用1.6.4


是啊!我也这么怀疑,因为我在查看jQuery源代码中的时间戳,但我无法让自己相信。现在已经发生了两次,jQuery(或jQuery Mobile)的新版本打破了我一直在做的工作。我想使用最新的版本,但是…我认为对于jQm来说,最新的版本就是他们正在实现的版本,并且可能不会一直工作