js求助大佬

活动线报侠 程序猿

时间: 2024-05-01 阅读: 1 字数:588

{}
这是发送按钮点击事件 // 发送 sendout() ...

目录

这是发送按钮点击事件 // 发送 sendout() { // socket.send(this.TentText); this.list.push({ id: 1, cont: this.TentText }) this.TentText = ''; if (this.expsions == false) { this.$refs.myInput.focus(); } 我想点击后,在点击事件里读取数组够 添加新数组!下面的是原数据: var Customer = new Vue({ el: '#Customer', data: { screenWidth: '', // 屏幕宽 screenHeight: '', // 屏幕高 list: [ { id: 1, cont: '山不在高,有仙则名。' }, ], 添加后变成: var Customer = new Vue({ el: '#Customer', data: { screenWidth: '', // 屏幕宽 screenHeight: '', // 屏幕高 list: [ { id: 1, cont: '山不在高,有仙则名。' }, { id: 2, cont: '厉害啊。' }, ], 这些代码都在index.js文件里面,怎么写?感谢各位大佬!!
本文章网址:https://www.sjxi.cn/detil/5ade04cf92d54d1c9066e5915164fade

打赏作者

本站为非盈利网站,如果您喜欢这篇文章,欢迎支持我们继续运营!

最新评论
当前未登陆哦
登陆后才可评论哦

湘ICP备2021009447号

×

(穷逼博主)在线接单

QQ: 1164453243

邮箱: abcdsjx@126.com

前端项目代做
前后端分离
Python 爬虫脚本
Java 后台开发
各种脚本编写
服务器搭建
个人博客搭建
Web 应用开发
Chrome 插件编写
Bug 修复