美文网首页
FE-placeholder IE 触发input事件

FE-placeholder IE 触发input事件

作者: ShineaSYR | 来源:发表于2019-11-08 19:49 被阅读0次

IE L-lulu 使用问题记录

// IE10+下有个bug
// focus placeholder变化时候,会触发input事件,我只能呵呵了
if (document.msHidden != undefined && this.value == '' && !this.lastvalue && $(this).attr('placeholder')) {
  this.lastvalue = this.value;
  return;
}

相关文章

网友评论

      本文标题:FE-placeholder IE 触发input事件

      本文链接:https://www.haomeiwen.com/subject/bjbwbctx.html