//tabbar.js
uni.getClipboardData({
success: function success(res) {
console.log();
_this.video_url = res.data;
}
});
tabbar.js里输出剪切板内容到index.wxml输入框的value="{{video_url}"里
//index.wxml
<textarea class="padding data-v-57280228" style="width:100%;height:120px;border:2rpx;" placeholder="请粘贴链接" data-event-opts="{{[['input',[['__set_model',['','video_url','$event',[]]]]]]}}" value="{{video_url}}" bindinput="__e"></textarea>
相当于在a.js输出到b.wxml,请赐教,感谢!