jq里的element是什么意思
.fn.smartFloat=function(){
varposition=function(element){
vartop=element.position().top,pos=element.css("position");
$(window).scroll(function(){
varscrolls=$(this).scrollTop();
if(scrolls>top){
if(window.XMLHttpRequest){
element.css({
position:"fixed",
top:0
});
}else{
element.css({
top:scrolls
});
}
}else{
element.css({
position:"absolute",
top:top
});
}
});
};
return$(this).each(function(){
position($(this));
});
};