js判断是否为空

if(typeof(data.result)=='undefined' || data.result==''){

  alert("空啦!!");

}

posted @ 2017-01-06 14:36  刘尊礼  阅读(83)  评论(0)    收藏  举报