var b ="啊,我要过去"; var a = encodeURI(b);//对中文编码 var c = decodeURI(a);//对中文解码window.localtion.href='www.zuosi.com?a='+a;