HTML DOM name ÊôÐÔ

¶¨ÒåºÍÓ÷¨

name ÊôÐÔÉèÖûò·µ»ØÎı¾ÓòµÄÃû³Æ¡£

Óï·¨

textObject.name=name

ʵÀý

ÏÂÃæµÄÀý×Ó»ñµÃÁËÎı¾ÓòµÄÃû³Æ£º

<html>
<body>

<form>
Email: <input type="text" id="email" name="email" />
</form>

<p>The name of the text field is:
<script type="text/javascript">
x=document.getElementById('text1');
document.write(x.name);
</script></p>

</body>
</html>
VUE