『壹』 js里面我使用encodeURI加密json字符串传递到另一个页面,为什么另一个页面地址显示参数只加密了一点
encodeURIComponent(escape("史蒂夫史蒂夫"))
『贰』 ajax jsonData 怎么传两个json 格式的数据吗
因为传的两个中有一个有公共的数据:如下我的代码示例:
if(orderProType == 'MFS'){
var data = {
'question1':this.res.mobileQuestion1.getValue(),
'answer1':this.res.mobileAnswers1.getValue()
}
}else{
'question1':this.res.commQuestion1.getValue(),
'answer1':this.res.commAnswers1.getValue()
}
var publicData = {
'beVisitReapirOrderNums':beVisitReapirOrderNums,
'saveOrSubmit':saveOrSubmit,
。。。。
}
这个publicData 原本在data中是公有的,我不想写两段重复代码,就想拿出这公共的data
Ext.Ajax.request( {
url : 'visit/info/doBatchVisitInfo.do',
method : 'POST',
scope : this,
jsonData: //需要传入上面的json数据
success : function(){.......}