Good'ay to all you。jQuery Mobile在PageCreate上更改页面
我以为我想了解更多关于jQuery手机的知识,所以我昨天就开始了,但是我一开始就陷入困境。
我想实现的是:
- index.html的负载
- 的index.html重定向到页/ home.html的
这样一来,网页/ home.html的会成为默认页面。这是否有可能? 目前,我有这样的:
<body>
<script>
$(document).bind('pagecreate', function()
{
$.mobile.changePage("pages/home.html");
});
</script>
</body>
</html>
它显示了一种奇怪的行为,滑动两次,并显示错误消息(说页面无法加载)。
我希望我的所有页面都在页面子目录中。这是可能的还是我不可能再次?
谢谢。
编辑
其他页面在正文中包含以下内容;
<div data-role="page">
<div data-role="header">
<h1>Page Title</h1>
</div>
<div data-role="content">
<p>Page content goes here.</p>
</div>
</div>
我可以有这两个页面的来源,我只是想运行它在小提琴 – Ranjith 2013-02-23 13:17:51
添加到编辑。 – Roel 2013-02-23 13:21:38