提供了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) 关闭窗口后的回调函数
tudousi/ctmessage
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
提供了alert、confirm和message的实现
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published