前后台乱码问题

1.后台编码

URLEncoder.encode(type.getTypename(), "utf-8")

2.前台解码

decodeURI(data.typename)

 

posted on 2016-03-18 14:59  Simle  阅读(107)  评论(0编辑  收藏  举报