Jquery easyui datagrid清除缓存使用技巧
2014-09-30 09:58
316 查看
在使用JQUERY EASYUI DATAGRID中避免缓存信息的解决方案
共有两种解决方式
方式一:
datagrid属性method使用get方法,页面使用Ajax不缓存,但是datagrid中文参数提交后台中文乱码,需要转码;
方式二:
datagrid属性method使用post方法,此时datagrid提交的中文参数不乱吗,不缓存。
通过以上两种方式可以完美解决数据缓存问题。
共有两种解决方式
方式一:
datagrid属性method使用get方法,页面使用Ajax不缓存,但是datagrid中文参数提交后台中文乱码,需要转码;
jQuery(function($) { jQuery.ajaxSetup({ cache : false });//ajax不缓存 });
if (null != username) { username = new String(username.getBytes("iso8859-1"), "utf-8"); }
方式二:
datagrid属性method使用post方法,此时datagrid提交的中文参数不乱吗,不缓存。
通过以上两种方式可以完美解决数据缓存问题。
相关文章推荐
- varnish的使用和PHP清除缓存的技巧
- DataGrid使用技巧大杂烩
- DataGrid使用技巧
- DataGrid使用技巧(四)
- Winform下DataGrid使用技巧总结
- [转]DataGrid使用技巧大杂烩
- DataGrid使用技巧小总结-个性化分页及复杂表头
- DataGrid使用技巧小总结-个性化分页及复杂表头
- DataGrid使用技巧大杂烩 1
- DataGrid常用的使用技巧
- DataGrid使用技巧
- DataGrid使用技巧小总结
- DataGrid使用技巧(一)
- DataGrid使用技巧(三)
- DataGrid使用技巧大杂烩
- DataGrid使用技巧小总结-个性化分页及复杂表头
- [导入][.NET知识]DataGrid使用技巧大杂烩
- DataGrid使用技巧大杂烩
- DataGrid使用技巧小总结
- DataGrid使用技巧大杂烩