• 在弹框中获取foreach中遍历的id值,并传递给地址栏。


    1.php有时候我们需要再弹框中获取foreach中遍历的数据(例如id),在弹框中点击按钮并传递给地址栏跳转。那么应该怎么做呢。

    2. 点击取现按钮,如果没有设置密码->弹框

    3. 点击去设置,把用户名通过地址栏传递给别的页面。

    4.使用onclick事件,把参数charge传递给function函数。function为弹窗函数。

    5. 把username值传递过来。并给“去设置”赋值herf属性。

    6.

    <div class="mask" ></div>
      <div class="mess">
          <div style="text-align:left;height:50px;line-height:50px;background-color:#3399CC">
          <span style="padding-left:10px;display:block;font-size:18px;">提示<img class="close_window" src="/images/back_img/close.png" style="height:25px;float:right;display:inline-block;cursor:pointer;margin-top:12px;margin-right:10px;"></span>
          </div>
          <div style="100%;height:50px;line-height:50px;font-size:17px;margin-top:10px;">   
            <span>该借款人未设置交易密码,请设置交易密码后取现</span>
          </div>
          <div style="height:100px;100%;margin-top:20px;text-align:center;">
              <p>
                  <a style="122px;height:42px;line-height:42px;background-color:#1D8CBC;color:#FFF;display:inline-block;cursor:pointer;border-radius:4px;text-align:center;margin-left:180px;" class="btn1">   
                   <span >去设置</span>
                  </a>
              </p>
          </div>
      </div>
  • 相关阅读:
    三、python函数基础
    二、python算法逻辑基础
    RE正则表达式-语法
    read方法读取ini文件报错'gbk' codec can't decode
    git bash常用命令
    xlrd、xlwt、xlutils模块操作excel文件
    Git命令行克隆项目
    浏览器console,web自动化常用的几种定位调试使用方法总结
    css定位正则匹配和模糊匹配
    罗马数字转整数
  • 原文地址:https://www.cnblogs.com/yangzailu/p/6999750.html
Copyright © 2020-2023  润新知