JQUERY对话框插件 点击弹出提示成功或者失败,定时5秒或者几秒钟后消失

2020-07-12 社会 114阅读


New Document <&> <br> <link rel="stylesheet" href="<a href=" http: target="_blank">http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" /><br> <script src="<a href=" http: target="_blank" rel="nofollow noopener">http://code.jquery.com/jquery-1.8.2.js"></script><br /> <script src="<a href="http://code.jquery.com/ui/1.9.1/jquery-ui.js" target="_blank" rel="nofollow noopener">http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script><br /> <script type="text/javascript"><br /> $(document).ready(function(){<br /> $( "#dialog" ).dialog();<br /> $( "#dialog" ).dialog("close");<br /> <br /> $("button").click(function(){<br /> $( "#dialog" ).dialog("open");<br /> $("body").animate({"top":"0px"},5000,function(){<br /> $( "#dialog" ).dialog("close");<br /> });<br /> });<br /> });<br /> </script><br /></head><br /><body><br /> <button>确定</button><br /> <br /> <div id="dialog">等5秒,5秒定义在$("body").animation({"top":"0"},5000,"swing",function()。这里的5000 就是5秒</div><br /></body><br /></html></script></&>
声明:你问我答网所有作品(图文、音视频)均由用户自行上传分享,仅供网友学习交流。若您的权利被侵害,请联系fangmu6661024@163.com