如题,想通过地址中的id有值使得时间控件隐藏,id无值使得时间控件显示
if (id.length>0) {
var that=this;
setTimeout(function() {
that.setVisible(false);
}, 100)
}
使用JS
换个方式
var th = this;
if (a > 0) {
th.setVisible(false);