HTML DOM abbr ÊôÐÔ

¶¨ÒåºÍÓ÷¨

abbr ÊôÐÔ¿ÉÉèÖûò·µ»Ø±íÔªÖÐÄÚÈݵÄËõд°æ±¾£¨Õë¶Ô·Ç¿ÉÊÓµÄý½é£¬±ÈÈçÓïÒôºÍäÎÄ£©¡£

Óï·¨

tabledataObject.abbr=text

ʵÀý

ÏÂÃæµÄÀý×Ó¿ÉÌáʾij¸öµ¥Ôª¸ñµÄ abbr£º

<html>
<head>
<script type="text/javascript">
function alertAbbr()
  {
  alert(document.getElementById('td1').abbr);
  }
</script>
</head>
<body>

<table border="1">
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td id="td1" abbr="Some text">Peter</td>
<td id="td2">Griffin</td>
</tr>
</table>
<br />
<input type="button" onclick="alertAbbr()" 
value="Alert abbr" />

</body>
</html>
VUE