判断值是否为null

js中

if(data == null)

php中

if($data == null)

 undefined     声明一个变量没有赋值,默认就是undefined

 undefined == null;//返回true
 undefined === null;//返回false

原文地址:https://www.cnblogs.com/jdbeyond/p/12101844.html