码迷,mamicode.com
首页 > 其他好文 > 详细

easyui相关

时间:2016-05-05 00:35:52      阅读:151      评论:0      收藏: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);
}
});
}

easyui相关

标签:

原文地址:http://www.cnblogs.com/lulian/p/5460092.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!