javascript - How to get the Chinese parameter value on the address bar, code it in the JS page, and use it normally?
学习ing
学习ing 2017-06-28 09:26:17
0
3
758


The first picture is the Chinese parameters passed from the previous page

The second picture is the current page from Parameters obtained from the address bar

学习ing
学习ing

reply all(3)
迷茫

Try decodeURI or decodeURIComponent, otherwise it’s an encoding problem

代言

代言

Use encodeURIComponent (parameter) to encode before jumping

Use decodeURIComponent (parameter) to decode after the jump

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!