发布时间: 2019-01-01 02:01:00
参考:https://stackoverflow.com/questions/2647867/how-to-determine-if-variable-is-undefined-or-null
if( a == null) ....
在js 中, null == undefined. 所以上面的判断,可以同时拦截 null, undefined两种情况。