比方说,在页面上,有
<tr>
<td >
<input id="tt"  id="add" name="add" maxlength="256" /></td>
</tr>我希望用javascript 获取maxlength属性的值,代码怎么写?