2011-12-07 29 views

回答

0

jQuery的版本似乎是uncompatibal使用版本1.3.2

http://jsfiddle.net/cByhZ/26/

+0

您需要使用jQuery来运行jQuery Mobile,在此示例中单击该按钮不会触发事件。 – PapaSmurf

+0

@jonathandey我不知道:|但似乎jquery的新版本与jquey移动版本不兼容,我更新了答案 – Rafay

+0

我认为我们需要同时使用jQuery核心版和移动版? –

0

尝试使用此

<html> 
    <head> 
     <title>jQuery Mobile Button</title> 
     <script src="http://code.jquery.com/mobile/1.0/jquery.mobile-1.0.min.js"></script> 
    </head> 
<body> 
    <div data-role="page"> 
     <a href="index.html" data-role="button" data-icon="delete">Delete</a> 
     <div id="output"></div> 
    </div> 
</body> 
</html> 
0

jQM在你的例子中使用jQuery 1.6.4 e你不添加jQM CSS。我已经加入了CSS链接,改变了jQuery的版本1.6.4(参见例子),改变了一些JS代码以及

相关问题