js 对象判断

var data = {url:""}; 可以通过这样进行判断: if(data.url){ alert(123); } 意思是如果url不为空,就....
原文地址:https://www.cnblogs.com/yanjunwu/p/3105455.html