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

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

button按鈕沒(méi)有onclick事件,點(diǎn)擊按鈕執(zhí)行操作

button按鈕沒(méi)有onclick事件,點(diǎn)擊按鈕執(zhí)行操作

慕瓜2019 2019-05-05 18:07:27
單位的網(wǎng)站有個(gè)查詢(xún)功能,使用的是button按鈕,但是沒(méi)有onclick事件,可是點(diǎn)擊按鈕后,還是去執(zhí)行了代碼我的問(wèn)題:1、js是嵌入到html頁(yè)面的,那個(gè)js文件里好多的東西,不知道哪個(gè)是這個(gè)按鈕點(diǎn)擊后執(zhí)行的代碼,我應(yīng)該如何找到它呢?2、如果沒(méi)有onclick事件,是怎么實(shí)現(xiàn)點(diǎn)擊按鈕執(zhí)行的呢?不知道我這樣說(shuō)是不是能夠部清楚,請(qǐng)知道的朋友幫忙解答下,謝謝
查看完整描述

1 回答

已采納
?
業(yè)余奶茶品鑒師

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

在button的type設(shè)置為submit的時(shí)候,就像這樣

<button type="submit">button</button>

不用onclick,就可以直接提交form表單

查看完整回答
2 反對(duì) 回復(fù) 2019-05-06
  • 慕瓜2019
    慕瓜2019
    謝謝您的解答,那如何找到執(zhí)行的哪個(gè)JS代碼呢?
  • 業(yè)余奶茶品鑒師
    業(yè)余奶茶品鑒師
    你全局搜索一下button的id,看看有沒(méi)有綁定什么方法,還有form上有沒(méi)有綁定方法。望采納
  • 慕瓜2019
    慕瓜2019
    <form id="my-form" class="aaaeee" > <section name="信息查詢(xún) 1"> <div id="languages"> <div style="display:flex; justify-content:center; align-items:center; width:100%; "> <input id="username" placeholder="請(qǐng)輸入需要查詢(xún)的信息" style="margin-right:20px;margin-top:10px;" name="username" type="text"/> <button type="submit" style="margin-top:10px;" onclick="tracking()">立即查詢(xún)</button> </div> </div> </section> <section name="信息查詢(xún) 2"> <div id="languages"> <div style="display:flex; justify-content:center; align-items:center; width:100%; "> <div style="margin-right:12%"> <select onchange="window.location=this.value;" > <option value ="">查詢(xún)內(nèi)容I</option> <option value ="seach_1.asp">查詢(xún)內(nèi)容2</option> <option value ="seach_2.asp">查詢(xún)內(nèi)容3</option> </select> </div> <div style="margin-right:8%" > <select onchange="window.location=this.value;" > <option value ="">查詢(xún)內(nèi)容II</option> <option value ="seach_3.asp">查詢(xún)內(nèi)容4</option> <option value ="seach_4.asp">查詢(xún)內(nèi)容5</option> </select> </div> </div> </div> </section> <div><hr/></div> </form>
點(diǎn)擊展開(kāi)后面4
  • 1 回答
  • 0 關(guān)注
  • 4956 瀏覽
慕課專(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)