1.如果想让input输入框显示值,并且不允许修改该值,可以使用disabled="disabled",入下所示例子: <input type="text" name="orderDate" disabled="disabled" id="orderDate" value="${resOrder.orderDate}" placeholder="<%=new SimpleDateFormat("yyyy-MM-dd").format(new Date())%>" class="form-control Wdate" onClick="WdatePicker({readOnly:true})"/> |
|
来自: Erica_Shea > 《Html技巧》