第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

從表中訪問(wèn)點(diǎn)擊事件數(shù)據(jù)

從表中訪問(wèn)點(diǎn)擊事件數(shù)據(jù)

縹緲止盈 2021-10-21 10:34:58
我有表“登錄”,并使用 php 將 mysql 中的數(shù)據(jù)列出到 html 表中。<table class="table">                            <thead class="thead-dark">                            <tr>                                <th scope="col">Sl.NO</th>                                <th scope="col">Name</th>                                <th scope="col">Username</th>                                <th scope="col">Mobile</th>                                <th scope="col">Join Date</th>                                <th scope="col">Action</th>                            </tr>                            </thead>                            <tbody>                                <?php                                if($req_result->num_rows > 0)                                    {                                        while($req_row = $req_result->fetch_assoc()) {                                            $i+=1;                                            $reqmail = $req_row['username'];                                            $reqmobile = $req_row['id'];                                            $reqname = $req_row['name'];                                            $join_date = $req_row['join_date'];                                            ?>                                            <tr>                                              <th scope="row"><?php echo $i ;?></th>                                              <td><?php echo $reqname ;?></td>                                              <td><?php echo $reqmail ;?></td>                                              <td><?php echo $reqmobile ;?></td>                                              <td><?php echo $join_date ; ?></td>                                            </tr>                                            <?php                                        }                                    }                                ?>                          </tbody>                        </table>我想在單擊時(shí)訪問(wèn)該按鈕值,并處理另一個(gè)查詢(xún)。tbale“登錄”有多個(gè)數(shù)據(jù)。我該怎么做?
查看完整描述

2 回答

?
繁華開(kāi)滿(mǎn)天機(jī)

TA貢獻(xiàn)1816條經(jīng)驗(yàn) 獲得超4個(gè)贊

嘗試使用這個(gè)。如果有什么事讓我知道。干杯


//catch html button with js assigned to variable button

let button = document.querySelector('.btn btn-primary');


//listen for the click

button.addEventListener('click', function(){

   button.value;

});

// console log the the value of button

console.log(button);


查看完整回答
反對(duì) 回復(fù) 2021-10-21
  • 2 回答
  • 0 關(guān)注
  • 169 瀏覽
慕課專(zhuān)欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)