关键字:
今天刚发现的一个好东东,如果你已经厌倦了JavaScript的alert,可以尝试用用这个,效果不错,使用也比较简单,例如:
showDialog(
'
Error
'
,
'
You have encountered an error.
'
,
'
error
'
,
2
);
showDialog( ' Warning ' , ' You must enter all required information. ' , ' warning ' )
showDialog( ' Success ' , ' Your request has been successfully received. ' , ' success ' )
showDialog( ' Confirmation ' , ' Are you sure you want to delete the entry? ' , ' prompt ' )
showDialog( ' Warning ' , ' You must enter all required information. ' , ' warning ' )
showDialog( ' Success ' , ' Your request has been successfully received. ' , ' success ' )
showDialog( ' Confirmation ' , ' Are you sure you want to delete the entry? ' , ' prompt ' )
相应的效果截图如下:
源代码下载地址:
原文链接: