您的位置:首页 > 其它

用URL传递值的时候对中文进行编码 encodeURIComponent(pname)

2009-07-31 09:42 537 查看
--encodeURIComponent("你要编码的汉字");

var gotourl=url + "sssss=" + encodeURIComponent(rrr) + "&aa=" + encodeURIComponent(rrr)+ "&MATH=" + Math.random();
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐