1 escape() 实现对中文进行编码。 var str=escape("你好");//%u4F60%u597D 2 unescape() 实现对中文进行解码 var str=unescape("%u4F60%u597D");//你好