小程序-分享菜單列表 與 音樂播放
阿新 • • 發佈:2019-03-27
event div tle 分享 fun 是否 pin 程序 color
onShareTap: function(event) { // //緩存最大不能超過10m,如果不刪除就是永久存在的 // wx.removeStorageSync(‘key‘);//個別刪除 // wx.clearStorageSync();//全部刪除 const itemList = [ ‘分享給好友‘, ‘分享到朋友圈‘, ‘分享到QQ‘, ‘分享到微博‘ ] //操作菜單列表 wx.showActionSheet({ itemList: itemList, itemColor:‘#405f80‘, success:function(res){ wx.showModal({ title: ‘用戶‘ + itemList[res.tapIndex], content: ‘用戶是否取消?‘ + res.errMsg+‘現在還不能實現分享功能‘, }) } }) },
小程序-分享菜單列表 與 音樂播放