正常我们设置属性的时候,属性和属性值的 key value 对应,但是在实际开发中,经常遇到属性值可能需要从多项中选择,这个时候用原生的 HTML5 配合 JavaScript 来实现这个功能会让人非常头疼...}
return fillFormPane(formPane1, w, h, tablePane1, names, cb);//返回的值是什么属性值就显示什么...}
return fillFormPane(formPane2, w, h, tablePane2, phones, cb);//返回的值是什么属性值就显示什么...,属性值可以显示html标签,ht的组件,文字等等
}
}
]);
}
第三第四个属性中 drawPropertyValue 属性的返回值为 fillFormPane...;//data.getAttr('index')
if (cb) cb(v); //如果传入了cb参数,则设置data.a('number')/data.a('helloName')的值为表格中被双击的那一行的值