当我取页面元素的值的时候,拿到的为空值。但是不知道拿的是“”还是null还是undefined,此时我们就这样判断。。 !data 来判断,相当于判断data=""、data=null、data= undefined、data=0