标签:
var target = encodeURI(‘我测试‘); //--> target = %E6%88%91%E6%B5%8B%E8%AF%95
var
target = encodeURI(
‘我测试‘
);
//--> target = %E6%88%91%E6%B5%8B%E8%AF%95
afterConvert = decodeURI(
‘%E6%88%91%E6%B5%8B%E8%AF%95‘
//--> afterConvert = 我测试
url转码
原文地址:http://www.cnblogs.com/huihuilu/p/5842967.html