easyui的$.messager.confirm()插件的异步实现。

easyui的$.messager.confirm()插件是异步实现的,所以有时候需要将其他function写到回调函数里面去。

1 $.messager.confirm("","",function(r){
2     if(r){
3        alert("是异步实现的");     
4     }
    //other function
5 })

猜你喜欢

转载自www.cnblogs.com/dengsheng/p/9932505.html