这是我的插件的代码..
$.fn.slide = function(settings) {
return $(this).each(function() {
setInterval(function() { $.slider(opt.direction , opt.slideSpeed,this) }
}
jQuery.slider = function(direction,slideSpeed,elm) {
console.log(elm) - > shows DOMWindow[] window as object
}
}
script.js
$('#container').slide({
slideAnimationTimeInterval : 6000,
slideSpeed : 700,
});
console.log(elm) - > 将 DOMWindow[] 窗口显示为对象,但我需要#container 对象,我怎样才能得到它?