测试发现空值也会传递,如何过滤空值
if(this.inputValue!=""){ this.list.push(this.inputValue); this.inputValue = ''; }
加个判断,如果不是空值进行下面程序