New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加 showmsg 和 hidemsg 事件 #165

niceue opened this Issue Oct 30, 2014 · 0 comments


None yet
1 participant
Copy link

niceue commented Oct 30, 2014


// 提示ok消息
$("#username").trigger("showmsg", ["ok", "名字很棒"]);

// 提示error消息
$("#username").trigger("showmsg", ["error", "名字已被占用"]);

// 提示tip消息
$("#username").trigger("showmsg", ["tip", "好的名字使别人对你印象深刻"]);

// 提示已经绑定的tip消息(data-tip)
$("#username").trigger("showmsg", ["tip"]);

// 提示表单的全部tip消息
$("#form").trigger("showmsg", ["tip"]);

注意:0.8.0起不再支持 showtip 事件,请使用 .trigger("showmsg", ["tip"]) 替代。


// 隐藏字段消息

// 隐藏全部表单消息

@niceue niceue added the new label Oct 30, 2014

@niceue niceue added this to the 0.8.0 milestone Oct 30, 2014

@niceue niceue closed this in 94f2572 Oct 30, 2014

@niceue niceue changed the title 增加showmsg和hidemsg事件 增加 showmsg 和 hidemsg 事件 Nov 13, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment