摘要: typeof把类型信息当作字符串返回。返回值有:"number","string","boolean","object","function"和"undefined".可以使用typeof获取一个变量是否存在,如if(typeof(str) !="undefined"){},不要去使用if(a),a 阅读全文
posted @ 2018-03-22 10:52 激战JZ 阅读(255) 评论(0) 推荐(0) 编辑