之前聊过input最大字数限制,今天看下如何设置输入框默认值 placeholder属性 如下: <input type="text" maxlength="11" placeholder="名字"/> 输入框展示效果如下: