4005关注11937浏览
onShow:function(){
var that = this
var sis = wx.getStorageInfoSync()
that.setData({
currentsize: sis.currentSize,
limitsize: sis.limitSize,
})
wx.getClipboardData({
success: function (res) {
console.log(res)
if (!that.isEmpty(res.data.trim())) {
that.setData({
clipboarddata: res.data,
textarea: res.data,
textcount: res.data.trim().length,
})
} else {
that.setData({
clipboarddata: "",
textcount: 0,
})
}
}
})
}
<textarea name="textarea" style="width:700rpx;height:35vh;"maxlength="-1" show-confirm-bar="" cursor-spacing="80" value="{{textarea}}" bindinput="textareaTap" placeholder-style="font-size:30rpx; color:#bcbcbc;" placeholder=" 剪贴板内容不能为空" />
<textarea name="textarea" style="width:700rpx;height:35vh;"maxlength="-1" show-confirm-bar="" cursor-spacing="80" value="{{clipboarddata}}" bindinput="textareaTap" placeholder-style="font-size:30rpx; color:#bcbcbc;" placeholder=" 剪贴板内容不能为空" />
-
至过去的我
2044人对此回答表示赞同
我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>