text控件的id为demo,在js中通过ui('demo')来获取控件,然后调用getText函数获取文本。function main() { setupUI(); console.log(ui('demo').getText()); }
function main() { setupUI(); }
function main() { setupUI(); }
function main() { setupUI(); ui('demo').setBackgroundColor('red'); }
function main() { setupUI(); ui('demo1').setBackgroundImage('asset:logo.png'); }
function main() { setupUI(); ui('demo1').setVisibility('visible'); }
function main() { setupUI(); } function cbClick() console.log('click'); }
function main() { setupUI(); } function cbLongClick() console.log('long click'); }