支线第九篇:

添加用户:

表格  上是  数组

添加用户,

在数组中再加一组数据:

 

addUser: function() {
                        this.userList.push({
                            name: this.name,
                            password: this.password,
                            call:this.call
                        });
                        // 添加完成后,清空数据
                        this.name = '';
                        this.password = '';
                        this.call = '';
                    },
大概这么个玩意

 

后面的再研究研究

posted @ 2021-10-07 12:51  养肥胖虎  阅读(27)  评论(0编辑  收藏  举报