var str = '中';
var code = encodeURI(str);
console.log(code); // => %E4%B8%AD
posted on 2017-07-06 17:04 程序猿-alvin 阅读(364) 评论(0) 收藏 举报