only the original thread that created a view hierarchy can touch its view
only the original thread that created a view hierarchy can touch its view解决方法ec分为ui线程和脚本线程
关于ui的操作必须在ui.js里执行
如果需要在main.js中操作,必须用ui.run包起来
ui.run(0,function(){
view.setText("123")
})
页:
[1]