Home  >  Article  >  Web Front-end  >  JQuery的Alert消息框插件使用介绍_jquery

JQuery的Alert消息框插件使用介绍_jquery

WBOY
WBOYOriginal
2016-05-16 18:18:531154browse

下载JS文件引用到page中,如下代码:

复制代码 代码如下:








注意其中draggable是用来实现拖拉的,如不需要这个功能不就不用引用。在目前最近的Jquery1.42下应用引用:
复制代码 代码如下:






主要方法有:
jAlert(message, [title, callback]) 创建一个alert
jConfirm(message, [title, callback]) 创建一个确认allert,支持callback
jPrompt(message, [value, title, callback]) 创建一个提示框让用户输入值,支持callback如果你有提供
可以参下面的示例Code:
复制代码 代码如下:






















最后alert效果图:
JQuery的Alert消息框插件使用介绍_jquery 
打包下载地址 http://www.jb51.net/jiaoben/32367.html
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn