久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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怎么設(shè)置value屬性

      javascript中設(shè)置value屬性的方法:首先使用document.getElementById()方法獲取指定DOM對象;然后“DOM對象.value="值";”語句來設(shè)置即可。

      javascript怎么設(shè)置value屬性

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

      javascript設(shè)置value

      有些元素有value屬性,如input、botton、select等,使用value屬性可以修改它的值。

      <!DOCTYPE html> <html>     <head>         <meta charset="UTF-8">         <title>修改value</title>     </head>     <body>          <input type="text" name="hello" value="Hello krray" id="hello">         <script>             var a=document.getElementById("hello");             alert( a.value);             a.value="你好,小凱"         </script>     </body> </html>

      HTML DOM value 屬性

      value 屬性用于設(shè)置或者返回屬性的值。

      語法:

      • 設(shè)置屬性值

      attribute.value=value
      • 返回屬性值

      attribute.value

      返回值:字符串, 代表屬性的值。

      【推薦學(xué)習(xí):javascript高級教程】

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