Home >Web Front-end >HTML Tutorial >About passing value from jsp page to page_html/css_WEB-ITnose
I haven’t used this kind of value transfer for a long time. It’s usually a .do request to the background and then jumps to the front end; like some functions that just display data, it seems unnecessary to do this. Gossip aside Yes, record it for next time reference.
uses the a tag of html. I only use these two methods here.
The scene is as shown below:
1: Click to withdraw
The first way is to set parameters in the a tag, which is a json object, key-value pair
params="({
agreeNo:'
acctNo:'
cardNo:'
dspNo:'
drCrAcctno:'
drCrCardNo:'
bussType:'
currencyType:'
maturityDate:'
agreeAmt:'
limitDays:'
depositRate:'
lendingRate:'
discountLendingRate:'
openDate:'
monthTerm:'
monthTermDesc:'
})">支取
附带1方法:
function judge(obj) {
params = eval( obj.params );
var today = '
var openDate = params['openDate'];
if (today>=openDate) {
withdraw(obj);
return false;
} else {
var hrefz="
$.pa_ui.dialog.open({
url:hrefz,
position:[50,20],
title:'支取提示',
frameOverlay:true,
width:600,
height:250,
modal:true,
minimize:false,
maximize:false
});
return false;
}
}
2:点击详情
这种方式就是直接调用事件中的方法传值,也是json传值
',
dspNo:'
amt:'
monthTerm:'
effDate:'
maturityDate:'
openDate:'
}); return false;"
>详情
附带2方法:
function detailQry(obj){
var hrefz="
$. pa_ui.dialog.open({
width: 650,
height:500,
modal:true,
minimize:false,
maximize:false
});
Return false;
}
It is the same in another jsp page, displaying the field corresponding to the el tag param object point