页面之间传值乱码

来源:互联网 发布:电子账单软件 编辑:程序博客网 时间:2024/04/30 05:12

页面1

<a class="tool-item" href="./tx_service.html?taskType='+"与我相关的服务"+'"><b class="task">与我相关的服务 <span>('+data.myservice+')</span></b></a>

页面 tx_service.html 的JS写法

<pre name="code" class="html">var task_type = decodeURI(aoting.getUrlParam(location.href,'taskType'));//解码aler(task_type );


0 0