2013年11月18日

Extjs dataView 详解

摘要: (一)js 1 var store = new Ext.data.JsonStore({ 2 url: 'get-images.php', 3 root: 'images', 4 fields: [ 5 'name', 'url', 6 {name:'size', type: 'float'}, 7 {name:'lastmod', type:'date', dateFormat:'timestamp'} 8 ] 9 });10 store.load( 阅读全文

posted @ 2013-11-18 16:42 看天空的星星 阅读(3315) 评论(1) 推荐(0) 编辑

文件下载URL中,中文乱码

摘要: 1 String fileName = URLEncoder.encode(resDownload.getFile().getFileName(), "UTF-8");//URL中文转码2 3 URLDecoder.decode(String, "编码格式") //java解码如果是jsp页面,需在前台解码js:解码var result=decodeURIComponent(result)或者var result=decodeURI(result)也碰到过项目中文件服务器自动解码. 阅读全文

posted @ 2013-11-18 16:34 看天空的星星 阅读(590) 评论(0) 推荐(0) 编辑

导航