如何应用jQuery补丁文件 [英] how to apply jquery patch file
本文介绍了如何应用jQuery补丁文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在jQuery中搜索了一个问题,并为此找到了来自jQuery网站的补丁文件.我已经下载了.它具有以下4行代码.
I googled for an issue in jQuery, and found patch file form jQuery site for that. I have downloaded it. It has jus the following 4 lines of code.
572c572
< if (inst.input[0].type != 'hidden')
---
> if (inst.input[0].type != 'hidden' && inst.input[0].disabled == false && $(inst.input[0]).is(":visible") == true)
有人可以帮助我在现有的jquery库中应用此修复程序.我尝试在库中搜索以上文本,但找不到.
Could somebody help me to apply this fix in the existing jquery library. I tried searching for the above text in the library, but couldn't find it.
推荐答案
您必须进行更改
if (inst.input[0].type != 'hidden')
到
if (inst.input[0].type != 'hidden' && inst.input[0].disabled == false && $(inst.input[0]).is(":visible") == true)
在您的代码中.您发布的整个代码称为差异"输出
in your code. Whole code you posted is called "diff" output
这篇关于如何应用jQuery补丁文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文