您现在的位置:首页 >> 前端 >> 内容

怎么解决谷歌disabled状态下操作问题?

时间:2018/3/5 15:58:00 点击:

  核心提示:怎么解决谷歌disabled状态下操作问题?//通过jquery选择这个要操作元素的disabled属性,如果true则先置成false操作后重新置成true if($(this).prop(disa...

怎么解决谷歌disabled状态下操作问题?

//通过jquery选择这个要操作元素的disabled属性,如果true则先置成false操作后重新置成true
   
            if($(this).prop("disabled")==true){
                 $(this).prop("disabled",false);
                 $(this).attr("title",this.value);
                 $(this).prop("disabled",true);
            }else{
                 $(this).attr("title",this.value);
            }

作者:网络 来源:练习手