js中
if(data == null)
php中
if($data == null)
undefined 声明一个变量没有赋值,默认就是undefined
undefined == null;//返回true undefined === null;//返回false
判断值是否为null
原文:https://www.cnblogs.com/jdbeyond/p/12101844.html