热搜:NVER node 开发 php

关于jsp页面到页面传值_html/css_WEB-ITnose

2024-11-22 15:15:02
关于jsp页面到页面传值_html/css_WEB-ITnose

  很久没用这种传值了,一般都是一个.do请求到后台在跳转到前端;像有些只是展示数据功能,这样做就显得没有必要,闲话不说了,记录下来供下次参考。

用的是html的a标签,我这里只用这2种用法。

场景如下图:

1:点击支取

第一种方式在a标签内设置参数,就是json对象,键值对

      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({
            url:hrefz,
            position:[50,20],
            title:'灵活定存协议详情',
            frameOverlay:true,
            width:650,
            height:500,
            modal:true,
            minimize:false,
            maximize:false
            });
        return false;
    }

 

 在另一个jsp页面都是一样的,显示用el标签param对象点对应的字段