js url 中文乱码

1. 传递参数

encodeURI(encodeURI(moduleTxts.toString()))
注意:使用2次,encodeURI
2. 解析参数
var moduleTxts = decodeURI('${param.moduleTxts}');
使用1次decodeURI 就柘可以了
posted @ 2015-12-24 15:25  a ray of sunshine  阅读(173)  评论(0编辑  收藏  举报