這裏是我的插件的代碼..
$.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(榆樹) - >顯示DOMWindow []窗口對象,但我需要的#container反對我怎樣才能得到它
感謝一噸thiefmaster :) – user1184100 2012-04-17 10:08:02