Jessei
9/25/2017 - 6:19 AM

js 判断!

js 判断是否为空

content = "";
content = null;
content = undefined;
content = 0;

if(!content){
  //过滤这几种情况
  alert("输入为空");
  return ;
}