You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by 黄炳金 <hu...@landicorp.com> on 2017/07/12 04:36:15 UTC

答复: 同步回调,返回值在JS内为undefined如何解决

使用新版SDK解决了。

感谢!

Best Regards!
HuangBJ

发件人: 黄炳金
发送时间: 2017年7月12日 9:52
收件人: dev@weex.incubator.apache.org
主题: 同步回调,返回值在JS内为undefined如何解决

Hi Weex Team,
         根据这个官方文档:https://weex.apache.org/cn/references/advanced/extend-to-android.html
         添加@JSMethod(uiThread = false)可以使用同步的方式

         想请问下,这种同步的方式可以支持返回值吗?
         我在JS内获取返回值都是undefined, 请问这如何解决?