jquery中对地址中的中文进行encodeURI编码

传递参数:
<script type="text/javascript"> var abc'; //字符串英文 var num = 998; //数字 var keyword= '编码'; //中文 var keyword1 = encodeURI(encodeURI(keyword)); //中文需要进行两次encodeURI转码 window.location.href = "./test.html?>; </script>
接收参数:
<script type="text/javascript">

keyword);//打印中文参数。

</script>