中文字符通过url?'data='+data的形式传递后,js会对中文字符自动进行编码,我们取出来的时候就需要先处理一下,具体用到的命令是:
decodeURI(编码后字符);
decodeURIComponent(编码后字符);
感谢~ http://write.blog.csdn.net/postedit?ref=toolbar
中文字符通过url?'data='+data的形式传递后,js会对中文字符自动进行编码,我们取出来的时候就需要先处理一下,具体用到的命令是:
decodeURI(编码后字符);
decodeURIComponent(编码后字符);
感谢~ http://write.blog.csdn.net/postedit?ref=toolbar