zoukankan      html  css  js  c++  java
  • 在弹框中获取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>
  • 相关阅读:
    解决span中的内容不换行
    javascript中apply、call和bind的区别
    vuex及其属性应用
    55.动态加载Html
    58.圆角图片
    57.动态添加子View(Java/XML两种方式)
    56.Java与js交互
    59.仿微信的图片浏览器
    64.判断当前线程是否是主线程
    61.自定义Indicator
  • 原文地址:https://www.cnblogs.com/yangzailu/p/6999750.html
Copyright © 2011-2022 走看看