jquery对话框插件推荐:模拟alert,confirm,prompt

项目中用的prompt,需要用户填入一个值。用系统默认的prompt(‘提示’,”),发现在IE下的提示窗口总是在左上角,很不方便,于是上网找了下相关的插件。下面推荐的两款使用比较方便的

一、jquery-Impromptu

官网/下载/演示:http://trentrichardson.com/Impromptu/index.php

使用很简单:


$.prompt( msg , options );

二、jQuery Alert Dialogs

官网/下载/演示:http://abeautifulsite.net/2008/12/jquery-alert-dialogs/

使用方法如下


jAlert(message, [title, callback])
jConfirm(message, [title, callback])
jPrompt(message, [value, title, callback])

详细的参数设置,还是自己上官网看文档吧


( ! ) Warning: Missing argument 1 for cwppos_show_review(), called in /data/www/enjoyphp/wp-content/themes/flat/content-single.php on line 29 and defined in /data/www/enjoyphp/wp-content/plugins/wp-product-review/includes/legacy.php on line 18
Call Stack
#TimeMemoryFunctionLocation
10.0001355032{main}( ).../index.php:0
20.0001355320require( '/data/www/enjoyphp/wp-blog-header.php' ).../index.php:17
30.184910160736require_once( '/data/www/enjoyphp/wp-includes/template-loader.php' ).../wp-blog-header.php:19
40.186110231880include( '/data/www/enjoyphp/wp-content/themes/flat/single.php' ).../template-loader.php:74
50.262210793928get_template_part( ).../single.php:5
60.262210794448locate_template( ).../general-template.php:167
70.262210794544load_template( ).../template.php:643
80.262310794928require( '/data/www/enjoyphp/wp-content/themes/flat/content-single.php' ).../template.php:686
90.267410780040cwppos_show_review( ).../content-single.php:29

1 评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注