wendux / DSBridge-IOS

:earth_asia: A modern cross-platform JavaScript bridge, through which you can invoke each other's functions synchronously or asynchronously between JavaScript and native.
1.96k stars 305 forks source link

在自建的API中把事件传出来? #67

Closed lizheftd closed 5 years ago

lizheftd commented 5 years ago

在viewcontroller中处理后再renturn或者调用completionHandler

wendux commented 5 years ago

不太明白你的意思。如果你是想在api函数体之外再给js返回值的话,你可以把handler先保存下来,在需要的时候再调用。

:octocat: From gitme Android