this.value = this.placeholder || this.getAttribute('placeholder')
this.value = this.placeholder || this.getAttribute('placeholder')
鉴于不同的浏览器对为止属性的实现方式有所不用,这里同时使用了HTML DOM的placeholder属性和DOM的getAttribute('placeholder')方法
posted on 2017-05-26 15:02 CNundefined 阅读(204) 评论(0) 收藏 举报
浙公网安备 33010602011771号