jQuery Mobile中的弹出窗口没有按预期工作,请咨询
jQuery Mobile中的弹出窗口没有按预期工作,请咨询。
弹出式DIV仍然可见,人们会期望DIV被隐藏,并且在点击链接时它不会弹出。它似乎在jQuery文档的演示中工作。
下面的代码有问题吗?
Pop Up This is a POP UP.
HTML
You have entered:
Open Dialog
jQuery的
$(document).delegate('#simplestring', 'click', function() { $(this).simpledialog({ 'mode' : 'string', 'prompt' : 'What do you say?', 'buttons' : { 'OK': { click: function () { $('#dialogoutput').text($('#dialoglink').attr('data-string')); } }, 'Cancel': { click: function () { }, icon: "delete", theme: "c" } } }) })
全球化志愿服务青年:_
http://jquerymobile.com/branches/popup-widget/docs/pages/popup/index.html
您正在使用尚未发布的测试版function,我会检查以确保您使用
- jQuery 1.7.1或更高版本( http://jquerymobile.com/test/js/jquery.js )
- jQM 1.2.0( http://jquerymobile.com/test/js/jquery.mobile.js )
- jQM 1.2.0 css( http://jquerymobile.com/test/css/themes/default/jquery.mobile.css )
实例:
文档:
你的代码:
Pop Up This is a POP UP.