HTML DOM value ÊôÐÔ

¶¨ÒåºÍÓ÷¨

value ÊôÐÔ¿ÉÉèÖûò·µ»ØÏÔʾÔÚÈ·Èϰ´Å¥ÉϵÄÎı¾¡£

Óï·¨

submitObject.value=sometext

ʵÀý

ÏÂÃæµÄÀý×Ó¿ÉÌáʾ³öÏÔʾÔÚÈ·Èϰ´Å¥ÉϵÄÎı¾£º

<html>
<head>
<script type="text/javascript">
function alertValue()
{
alert(document.getElementById("submit1").value)
}
</script>
</head>

<body>
<form>
<input type="submit" value="submit values" id="submit1"
onclick="alertValue()" />
</form>
</body>

</html>
VUE