當前位置:編程學習大全網 - 網站源碼 - 按鈕按鈕將表中的壹行數據傳遞給servlet。

按鈕按鈕將表中的壹行數據傳遞給servlet。

編輯按鈕是button,所以用js方法,用js傳入這個數據的id。

& ltscript type = " text/JavaScript " & gt;

函數更新數據(id){

window.open("/servlet.do?id = "+id+" ");

}

& lt/script & gt;

& ltinput type = " button " value = " edit " onclick = " updata($ { id })"/& gt;

  • 上一篇:英雄聯盟手遊快手lolm通關活動抽獎地址分享
  • 下一篇:什麽網格文件查看器可以顯示貼紙?
  • copyright 2024編程學習大全網