input获取焦点,但不调起键盘

$('#floatLabel').on('focus', () => {
        isFocus = true
        $('#floatLabel').attr("readOnly", true) //设置readOnly属性
        setTimeOut(function(){
          $('#floatLabel').attr("readOnly")//延迟移除readonly属性
          }, 200)
      })

  #floatLabel是input元素

posted @ 2020-06-27 18:04  大厨的笔记  阅读(764)  评论(0编辑  收藏  举报