Created
August 14, 2013 04:27
-
-
Save mactive/6228009 to your computer and use it in GitHub Desktop.
jQuery Learning
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.insertAfter()和.after():在现存元素的外部,从后面插入元素 | |
.insertBefore()和.before():在现存元素的外部,从前面插入元素 | |
.appendTo()和.append():在现存元素的内部,从后面插入元素 | |
.prependTo()和.prepend():在现存元素的内部,从前面插入元素 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.trim() 去除字符串两端的空格。 | |
$.each() 遍历一个数组或对象。 | |
$.inArray() 返回一个值在数组中的索引位置。如果该值不在数组中,则返回-1。 | |
$.grep() 返回数组中符合某种标准的元素。 | |
$.extend() 将多个对象,合并到第一个对象。 | |
$.makeArray() 将对象转化为数组。 | |
$.type() 判断对象的类别(函数对象、日期对象、数组对象、正则对象等等)。 | |
$.isArray() 判断某个参数是否为数组。 | |
$.isEmptyObject() 判断某个对象是否为空(不含有任何属性)。 | |
$.isFunction() 判断某个参数是否为函数。 | |
$.isPlainObject() 判断某个参数是否为用"{}"或"new Object"建立的对象。 | |
$.support() 判断浏览器是否支持某个特性。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment