在使用qooxdoo框架时,在一个类中:(在.xml文件中activeRow被定义为一个object_iterate:)
<object_literal name="activeRow" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Object">
<property name="nullable" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="Boolean">
</property>
<property name="check" scope="static" constructor="false" deprecated="false" private="false" protected="false" ignored="true" internal="false" type="String">
</property>
</object_literal>
这确实有效:
properties: {
activeRow: {
nullable: true,
check: "Object"
},
...
this.setActiveRow(123);
var x = this.getActiveRow();
这不起作用:
properties: {
activeRow: {
nullable: true,
check: "Object",
init: {test1: null, test2: null}
},
...
this.setActiveRow({test1: 123, test2: 123 });
var y = this.getActiveRow().test1;
有谁知道语法的哪一部分是错误的?
先感谢您!
添加包含以下讨论:
警报(this.getActiveRow 的类型);返回:函数
警报(this.getActiveRow);
返回:
function(){
return qx.core.Property.executeOptimizedGetter(this, bI, name, "get");
}