나는 객체를 생성하고 객체의 메소드 설정()를 가지고했습니다.jQuery에서 each()의 범위에있을 때 "this"의 범위를 어떻게 해결합니까?
this.debug = function(){...}
this.setup = function(){
var fieldsets = form.children("fieldset");
fieldsets.each(function(){
this.debug($(this).attr("class")));
});
}
내가 본이 다른 때문에, 개체의 범위에 있지만 각각의 범위에있는 this.debug를 호출하기 위해 노력하고있어 ...
어떻게이 액세스합니까 .debug?
그 didnt work =] lol – qodeninja
미안하지만 농담을 놓치면 실제로 작동하지 않습니까? – Skilldrick
this and that ... that.funny = 101 – neatlysliced