1、用戶點(diǎn)擊分享按鈕并向好友分享此頁(yè)面的內(nèi)容
通過(guò)給 button
組件設(shè)置屬性 open-type="share"
,可以在用戶點(diǎn)擊按鈕后觸發(fā) Page.onShareAppMessage 事件,相關(guān)組件:button。
<button open-type="share" type="primary">分享</button>
2、用戶打開(kāi)客服云對(duì)話(需要在真機(jī)運(yùn)行)?
?文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-755835.html
<button open-type="contact" type="primary">客服對(duì)話</button>
微信小程序的button文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-755835.html
到了這里,關(guān)于微信小程序——button中的open-type的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!