js 修改属性的方法编码
在js中每每须要循环object的属性和值进行编码 $.each(params, function(key, val) { if(val!=null&&val!=''){ ** params[key]=encodeURI(val);** } });code