您现在的位置是:首页 > 其他

李清波 2015-10-19 其他 1374 复制当前网址

asyncbox error

  • 窗口名:

  • 【错误框】

  • 函数调用:

  • 【命名空间】asyncbox.error(内容,[标题],[回调函数]);

  • 参数配置:

  • - content (String,Element)

  •    └ 内容。

  • - title [可选] (String,Element)

  •    └ 标题。

  • - function [可选] (function(action){})

  •    └ 回调函数。



AsyncBox 代码:


示例一:

asyncbox.error('Hello AsyncBox !');


示例二:

asyncbox.error('This is a AsyncBox error !','oh my god');


示例三:

//如需阻止窗口关闭,请在判断 action 值内加入 return false asyncbox.error('This is a AsyncBox error !','oh my god',function(action){
   //error 返回两个 action 值,分别是 'ok' 和 'close'。   if(action == 'ok'){
     alert('ok');
   }
   if(action == 'close'){
     alert('close');
   }
 });


文章来源:http://liqingbo.com/blog-986.html

上一篇:asyncbox prompt

下一篇:asyncbox confirm

评论