• bootstrap模态框 内部input无法手动获取焦点


    //重写enforceFocus方法
    $(document).ready(function(){ $.fn.modal.Constructor.prototype.enforceFocus = function() { $("input").focus(); }; })

    网上也有说删除 tabindex="-1" role="dialog" 这两个属性,然而并没有卵用

  • 相关阅读:
    Vue
    Vue
    Vue
    Vue
    Vue
    Vue
    Vue
    Vue
    Vue
    建立索引该如何选取字段
  • 原文地址:https://www.cnblogs.com/wangdahai/p/6758614.html
Copyright © 2020-2023  润新知