Home > Web Front-end > HTML Tutorial > About passing value from jsp page to page_html/css_WEB-ITnose

About passing value from jsp page to page_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:57:37
Original
1213 people have browsed it

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="?openDate=" openDate;
    $.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="?" $.param(obj);
$. 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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template