摘要: //typeof操作符是用来检测给定的变量的数据类型//比如: var message="hello world";alert(typeof(message)) // "string"//typeof会返回下列字符串/*"undefined" --如果这个值未定义"boolean" --如果这个值是布尔类型"string" --如果这个值是字符串类型"number" --如果这个值是数值"object" --如果这个值是对象或null"funct 阅读全文
posted @ 2014-02-10 17:24 hailiang2013 阅读(307) 评论(0) 推荐(0)
摘要: What is the result of this expression? (or multiple ones) ["1", "2", "3"].map(parseInt) A:["1", "2", "3"]B:[1, 2, 3]C:[0, 1, 2]D:other概述:map方法 返回 一个由原数组中每个元素 调用一个指定方法后的返回值 组成的新数组.语法:array.map(callback[, thisArg])参数: callback原数组中的元素经过该方法后返回一 阅读全文
posted @ 2014-02-10 16:20 hailiang2013 阅读(433) 评论(0) 推荐(0)