帳號:
密碼:
驗證碼:
保存期:
略過巡覽連結首頁 : 討論專區 : OnBeforeLoad事件應用
 
1. 主題:   OnBeforeLoad事件應用
發表人名稱 ﹕ IT01  發表日期 ﹕ 2020/11/13 下午 03:37:30 
發表人來自 ﹕
61.220.208.81     
原文 ﹕
 
<p></p><p>請問元件資料(document.getElementById("yrfrom").value)在 onload事件可以正確顯示,但是onbeforeload卻無法正常顯示(出現加載字樣)</p><p>,有可能是麼原因...</p><p>[code]</p>&nbsp; &nbsp; &nbsp;function dg1_OnBeforeLoad(param) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(document.getElementById("yrfrom").value);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; function dg1_OnLoad(data) {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;alert(document.getElementById("yrfrom").value);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; return true;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<p></p><p>[/code]</p>

附件:


2. 主題:   Re:OnBeforeLoad事件應用
發表人名稱 ﹕ Lily  發表日期 ﹕ 2020/11/13 下午 04:14:37 
發表人來自 ﹕
116.233.73.65     
原文 ﹕
 
<p>$('#yrfrom').val()</p><p>如果是text的話,上面這個方法可以取得嗎?</p>

附件:


3. 主題:   Re:OnBeforeLoad事件應用
發表人名稱 ﹕ IT01  發表日期 ﹕ 2020/11/13 下午 05:08:38 
發表人來自 ﹕
61.220.208.81     
原文 ﹕
 
已改用其他方式,謝謝

附件:


請點此至新網站發問