Sign in

陈晓峰 / miniapps-nature · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Forks
  • Network
  • miniapps-nature
  • pages
  • ceshi1
  • ceshi1.js
  • nature mini apps 2.0
    47c77a5f
    陈晓峰 authored
    2017-12-22 22:39:27 +0800  
    Browse Files »
ceshi1.js 477 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Page({
  data: {
    url:'http://www.henkuai.com/thread-11714-1-1.html'
  },
  show: function(){
    let that=this
    wx.setClipboardData({
      data: that.data.url,
      success(){
        that.setData({
          url:'http://www.henkuai.com/thread-11714-1-1.html'
        })
        console.log('success')
      }
    })
    wx.getClipboardData({
      success(res){
        console.log(res.data)
      }
    })
    wx.showToast({
      title: '复制成功'
    })
  }
})