|
发表于 2016-5-15 21:05:32
|
显示全部楼层
有两种方式:
方式一: 设置bind-visible关联某个data的某个字段, 之后动态修改相应的data的字段的值即可, 例如
bind-visible="$model.xxData.ref('status')"
this.comp("xxData").setValue("status", true); //可见
this.comp("xxData").setValue("status", false); //不可见
方式二: 直接使用jQuery的api, 例如:
$(this.getElementByXid("selectXid")).hide()
$(this.getElementByXid("selectXid")).show()
|
|