久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      javascript怎么獲取文本框的內(nèi)容

      javascript獲取文本框內(nèi)容的方法:1、利用value屬性,語法“文本框?qū)ο?value”;2、利用innerHTML屬性,語法“文本框?qū)ο?innerHTML”。

      javascript怎么獲取文本框的內(nèi)容

      本教程操作環(huán)境:windows7系統(tǒng)、javascript1.8.5版、Dell G3電腦。

      javascript獲取文本框內(nèi)容

      方法1:利用value屬性

      <textarea id="text">3546</textarea> <script> 	var text=document.getElementById("text"); 	console.log(text.value); </script>

      輸出結(jié)果:

      javascript怎么獲取文本框的內(nèi)容

      方法2:利用innerHTML屬性

      <textarea id="text">35462345</textarea> <script> 	var text=document.getElementById("text"); 	console.log(text.innerHTML); </script>

      輸出結(jié)果:

      javascript怎么獲取文本框的內(nèi)容

      【推薦學習:javascript高級教程】

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號