You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
/**
|
|
* 触发 service 层,与 onMethod 对应
|
|
*/
|
|
export function publish (name, res) {
|
|
return UniServiceJSBridge.emit('api.' + name, res)
|
|
}
|
|
|
|
export function publishHandler (event, args, pageId) {
|
|
// h5 平台直接调用UniViewJSBridge
|
|
global.UniViewJSBridge.subscribeHandler(event, args, pageId)
|
|
}
|
|
|