123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- Page({
-
- data: {
- code:''
- },
-
- onLoad: function (options) {
- this.setData(options)
- },
-
- onReady: function () {
- },
-
- onShow: function () {
- },
-
- onHide: function () {
- },
-
- onUnload: function () {
- },
-
- onPullDownRefresh: function () {
- },
-
- onReachBottom: function () {
- },
-
- onShareAppMessage: function () {
- },
-
- copyText:function(e){
- const { text } = e.currentTarget.dataset
- wx.setClipboardData({
- data: e.currentTarget.dataset.text,
- success: function (res) {
- wx.getClipboardData({
- success: function (res) {
- wx.showToast({
- title: '复制成功'
- })
- }
- })
- }
- })
- }
- })
|