easyui相关

Posted on 2016-05-04 22:33  yearn10086  阅读(117)  评论(0)    收藏  举报

1:datagrid获取或太json格式的page

方式一:

2:方式二

 

 

2:easyui提示框

1:右下角提示框
$.messager.show({
title:'提示',
msg:'删除成功',
showType:'show'
});
2:确认提示框
$.messager.confirm('提示','确定要删除'+name+'吗?',function(r){
if(r){
...
}
}
3:居中显示框
$.messager.alert('info','提示','',function(){

});

 

3:jquery   ajax请求

1:$.post(url,{data},function(result){});

2:function subForm(){
$.ajax({
url:'${root}/login/checkLogin',
data:$('form').serialize(),
dataType:'json',
cache:false,
type:'post',
beforeSend:function(XMLHttpRequest){
},
success:function(data){
alert(data);
}
});
}

博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3