JqueryMobile根本不加载链接页面

时间:2011-02-21 23:01:20

标签: jquery jquery-mobile

我正在努力让jQueryMobile使用最新的Alpha版本(3)和来自CDN的jQuery 1.5。呈现的代码如下。每当我点击页面上的链接时,它就会坐在微调器上,永远不会加载。但是当我点击源中的链接时,页面会加载。有人有什么想法吗?

<!DOCTYPE html> 
<html> 
  <head>
    ... 
    <link href='http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css' rel='stylesheet' type='text/css'> 
    <script src='http://code.jquery.com/jquery-1.5.min.js'></script> 
    <script src='http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js'></script> 
  </head> 
  <body> 
    <div data-role='page'> 
      <div data-role='header'> 
        <h1>Some Text</h1> 
      </div> 
      <div data-role='content'> 
        <ul data-role='listview'> 
          <li><a href="/persons/1">This is a test</a></li> 
        </ul> 
      </div> 
    </div> 
    <div id='footer'>Some text</div> 
  </body> 
</html> 

1 个答案:

答案 0 :(得分:2)

问题在于它所寻找的视图不是移动视图。它返回了一个没有加载JQM控件的标准视图。

相关问题