JavaScript if 判断null undefined 避免踩坑

NoSuchKey