JS网站的传参带中文的转换用decodeURI

let hashes = window.location.href.slice(window.location.href.indexOf('?') + 1)
hashes = decodeURI(hashes)
hashes = hashes.split('&')

  

posted @ 2021-02-25 10:05  呱呱呱呱坠地  阅读(95)  评论(0)    收藏  举报