相關(guān)關(guān)鍵詞
關(guān)于我們
最新文章
- PHP中opcode緩存簡(jiǎn)單用法分析
- thinkPHP控制器變量在模板中的顯示方法示例
- PHP move_uploaded_file() 函數(shù)(將上傳的文件移動(dòng)到新位置)
- dirname(__FILE__)的含義和應(yīng)用說(shuō)明
- thinkPHP5框架實(shí)現(xiàn)分頁(yè)查詢功能的方法示例
- PHP中單雙號(hào)與變量
- PHP獲得當(dāng)日零點(diǎn)時(shí)間戳的方法分析
- Laravel ORM對(duì)Model::find方法進(jìn)行緩存示例詳解
- PHP讀寫文件高并發(fā)處理操作實(shí)例詳解
- 【CLI】利用Curl下載文件實(shí)時(shí)進(jìn)度條顯示的實(shí)現(xiàn)
PHP在彈框中獲取foreach中遍歷的id值并傳遞給地址欄

1.php有時(shí)候我們需要再?gòu)椏蛑蝎@取foreach中遍歷的數(shù)據(jù)(例如id),在彈框中點(diǎn)擊按鈕并傳遞給地址欄跳轉(zhuǎn)。那么應(yīng)該怎么做呢。
2. 點(diǎn)擊取現(xiàn)按鈕,如果沒(méi)有設(shè)置密碼->彈框
3. 點(diǎn)擊去設(shè)置,把用戶名通過(guò)地址欄傳遞給別的頁(yè)面。
4.使用onclick事件,把參數(shù)charge傳遞給function函數(shù)。function為彈窗函數(shù)。
5. 把username值傳遞過(guò)來(lái)。并給“去設(shè)置”賦值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="width:100%;height:50px;line-height:50px;font-size:17px;margin-top:10px;"> <span>該借款人未設(shè)置交易密碼,請(qǐng)?jiān)O(shè)置交易密碼后取現(xiàn)</span> </div> <div style="height:100px;width:100%;margin-top:20px;text-align:center;"> <p> <a style="width: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 >去設(shè)置</span> </a> </p> </div> </div>