jQuery(function ($) {
            $.fn.disable function () {
                return this.each(function () {
                    if (this.disabled != nullthis.disabled = true;
                })
            };
            //调用方式 $('input').disable();
        });

jQuery扩展函数设置所有对象只读

相关文章:

  • 2022-12-23
  • 2021-08-10
  • 2022-01-13
  • 2022-12-23
  • 2021-07-21
  • 2021-10-05
  • 2021-09-07
  • 2021-09-24
猜你喜欢
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2022-02-26
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案