js判断undefined变量类型使用typeof_javascript技巧