jQuery   发布时间:2022-03-30  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了jQuery Mobile中的弹出窗口没有按预期工作,请咨询大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
jQuery Mobile中的弹出窗口没有按预期工作,请咨询.

弹出式DIV仍然可见,人们会期望DIV被隐藏,并且在点击链接时它不会弹出.它似乎在jQuery文档的演示中工作.

下面的代码有问题吗?

@H_502_15@<a href="#transitionExample" data-transition="pop" data-role="button" data-inline="true" data-rel="popup">Pop Up</a> <div data-role="popup" id="transitionExample"> This is a POP UP. </div>

@H_404_18@解决方法
HTML

@H_502_15@<p>You have entered: <span id="dialogoutput"></span></p> <a href="#" id="dialoglink" data-role="button">Open Dialog</a>

jQuery的

@H_502_15@$(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

@L_801_10@

大佬总结

以上是大佬教程为你收集整理的jQuery Mobile中的弹出窗口没有按预期工作,请咨询全部内容,希望文章能够帮你解决jQuery Mobile中的弹出窗口没有按预期工作,请咨询所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。