[align=center][size=x-large]哥刚学jquery.学习插件时遇到一些问题,很疑惑,大神们,现身吧~[/size][/align]
[code="java"]$.fn.gparents= function () {
var gparents=[];
$.each(this,function(i,n){
gparents.push(n.parentNode);
});
gparents=$.unique(gparents);//
alert([color=red]this[/color].attr('name'));//this是jquery对象. 莫非是function本身?
return this.[color=red]pushStack/color;//setArray方法无效什么原因呢? pushStack又是什么方法,
}[/code]
以上代码中:
1,this到底是什么意思?
2,pushStack和setArray是哪里的函数啊?查了jquery手册木有啊,在DOM手册也木有啊..