The example in this article describes the usage of the removeProp() method in jQuery. Share it with everyone for your reference. The specific analysis is as follows:
This method can delete the properties set by the prop() method.
Syntax:
Parameter list:
实例:
实例一:
以上代码可以删除td的width属性。
实例二:
以上代码并没有删除td的width属性,这是因为removeProp()只能删除由prop()方法设置的属性。
希望本文所述对大家的jQuery程序设计有所帮助。