<td class=title>例子 </td>
<td class= input>
<input name=example class='codeno'
ondblclick="return test('example','1');"
onkeyup="return test2('example','1');" >
可以在ondblclick这个事件中添加判断,如果有值,则直接return;否则则return test('example','1')
增加属性 disabled="disabled"
标签里面加readonly