123456789101112131415161718 |
- var app = getApp()
- var that;
- Page({
- data: {
- list:[1,2,3],
- text:'嘻嘻嘻'
- },
- onLoad() {},
- showText() {
- this.setData({ isBh: !this.data.isBh })
- },
- handleCopy() {
- dd.setClipboard({
- text: this.data.text,
- })
- app.globalData.showToast("已复制");
- }
- });
|