Skip to content

tudousi/ctmessage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ctmessage

提供了alert、confirm和message的实现

如何使用:
引入js和css文件
调用下面代码实现一个基本的alert框
ct.alert({
text: "hello world",
type: "alert"
});

调用方法
ct.message({type, text, title, position, expire, callback})
type是弹出框类型:
alert alert-error
confirm confirm-error
info info


title 标题文本
text 提示内容
position type为info时 信息框对应的位置 top在顶部 bottom在底部
expire 信息框存活周期 type为info才有用
callback(result) 关闭窗口后的回调函数


About

提供了alert、confirm和message的实现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published