标签:inpu 获取值 == blur put maxlength strong NPU code
知识点:onfocus和onblur时获取值,判断后改变值。
<input name="textfield" type="text" maxlength="20" value="请输入文字.." onfocus="if (value ==‘请输入文字..‘){value =‘‘}" onblur="if (value ==‘‘){value=‘请输入文字..‘}" />
标签:inpu 获取值 == blur put maxlength strong NPU code
原文地址:https://www.cnblogs.com/Millet-23/p/9305170.html