求助。。$.messager.confirm不能显示。。
easyui吧
全部回复
仅看楼主
level 2
e闲生 楼主
写了一个方法
先请求后台的数据,如下
$.ajax({
.....
success : function(data, textStatus) {
if (data.success) {
$.messager.confirm('title','option',function(r){
..
});
} else {
alert(data.msg);
}
});
然后$.messager.confirm跳不出来是为什么啊
2016年08月22日 14点08分 1
level 2
e闲生 楼主
有没有大神解答一下。。万分感谢
2016年08月22日 14点08分 2
level 2
e闲生 楼主
如果我用系统的方法
if(confirm("...")){
...
}
都没有问题
换成$.messager.confirm就都不行 了
2016年08月22日 14点08分 3
level 2
e闲生 楼主
[啊]
2016年08月22日 14点08分 4
level 2
e闲生 楼主
然后在那个方法里,如果我没有写$.ajax这个方法先请求后台的数据,直接$.messager.confirm就又可以了。。。。
2016年08月22日 14点08分 5
level 2
e闲生 楼主
但是我是想先根据id请求该id的name然后再提示,
2016年08月22日 14点08分 6
level 2
e闲生 楼主
[狂汗]有没有大神啊啊啊啊啊啊
2016年08月22日 14点08分 7
应该是你那个data.success为false,导致没执行到吧,你打个断点呢
2016年08月23日 00点08分
@zxl3531888 但是我如果换成alert()都是没有问题的,但是如果是$.messager.alert()也是不能显示。。。[狂汗]
2016年08月23日 01点08分
打个断点进去看看吧,这样问只能猜
2016年08月23日 03点08分
1