关于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传值

       params=”({
                                agreeNo:”,
                                acctNo:”,
                                cardNo:”,
                                dspNo:”,
                                drCrAcctno:”,
                                drCrCardNo:”,
                                bussType:”,
                                currencyType:”,
                                maturityDate:”,
                                agreeAmt:”,
                                limitDays:”,
                                depositRate:”,
                                lendingRate:”,
                                discountLendingRate:”,
                                openDate:”,
                                monthTerm:”,
                                monthTermDesc:”
                                })”>支取

 

附带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对象点对应的字段

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至253000106@qq.com举报,一经查实,本站将立刻删除。

发布者:PHP中文网,转转请注明出处:https://www.chuangxiangniao.com/p/3092466.html

(0)
上一篇 2025年3月28日 13:59:24
下一篇 2025年3月28日 14:00:26

AD推荐 黄金广告位招租... 更多推荐

相关推荐

发表回复

登录后才能评论