EC小编 发表于 2024-1-11 12:23:39

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]
查看完整版本: only the original thread that created a view hierarchy can touch its view