js传参汉字与接收

传参汉字:

var rr='暗杀的反馈'

window.location.href="路径?contan="+encodeURI(rr)

接收:

var content=decodeURI(location.href.split('=')[1])

posted @ 2018-11-20 10:23  看看时间  阅读(1259)  评论(0)    收藏  举报