当用户在使用旅行攻略App,会需要订机票、酒店、打车等服务,有时候一个App不能全包括,在用户的的诉求下,微信小程序提供的能力能够串联不同的App实现,那么其中的组件是如何出发的?
只需要我们设置<button>组件的参数,例如:
<button open-type="launchApp" app-parameter="wechat" binderror="launchAppError">打开APP</button>
Page({
launchAppError: function(e) {
console.log(e.detail.errMsg)
}
})