2013-04-30 4 views
1

나는 부모 클래스가 qx.core.Object 인 qooxdoo 클래스를 가지고 있습니다.구성원 및 속성의 차이점은 무엇입니까?

qx.Class.define("qx.model.MyClass", 
{ 
    extend : qx.core.Object, 
    construct : function() { 

    }, 
    statics : { 

    }, 
    members : { 
    apple : null 
    }, 
    properties : { 
    apple : { init : "Apple" } 
    } 
}); 

회원속성에서 변수의 차이점은 무엇입니까?

답변

2

구성원 섹션은 MyClass 인스턴스에서 일반 JavaScript 속성으로 사용할 수있는 필드를 정의합니다. qooxdoo의 속성은 자동 생성 접근 자 및 변경자 메서드, 유효성 검사 및 변경 이벤트를 비롯하여 여러 가지 기능을 제공합니다. 여기 http://manual.qooxdoo.org/2.1.x/pages/core/understanding_properties.html

그리고 qooxdoo 속성에 대한 기사입니다 : http://manual.qooxdoo.org/2.1.x/pages/core/defining_properties.html

이 페이지의 차이점을 설명

관련 문제