这是我的代码:
<script>
jQuery(window).attr("location", "https://myurl.com?firstname=Bretest&lastname=Martest&email=test1%40test.com&phone=(987) 654-3210");
</script>
问题是,我被重定向到的 url 是编码的:
我怎样才能让“&”通过解码?
这是我的代码:
<script>
jQuery(window).attr("location", "https://myurl.com?firstname=Bretest&lastname=Martest&email=test1%40test.com&phone=(987) 654-3210");
</script>
问题是,我被重定向到的 url 是编码的:
我怎样才能让“&”通过解码?