页面传参-中文乱码
作者:互联网
传参时候加密解密
## 页面跳转携带参数(先加密,后解密)
```javascript
function openZxwqTsDialog(type) {
var url = _web_context_+ '/web/zxwq/zxwqDataAnalysis/zxwqTs_list.html?type='+
encodeURIComponent(encodeURIComponent(type));
a_open({
id: 'add_sysRole_dialog',
title: '<span class="font16_B color_red3 family1">窗口</span>',
url: url,
width: '900',
height: '500',
aui_buttons_style: 'text-align:center;',
cancel: function(){},
cancelVal:'关闭'
});
}
$(function () {
var type = $.getParameter('type');
var type2=decodeURIComponent(type)
debugger;
if(type != null && type.length > 0){
isModify = true;
initGrid(type2);
}
});
]
标签:传参,function,url,乱码,var,type2,type,页面 来源: https://www.cnblogs.com/rainbowbridge/p/13904466.html