摘要:
typeof 运算符返回一个用来表示表达式的数据类型的字符串。typeof[()expression[]] ;expression 参数是需要查找类型信息的任意表 达式。 说明typeof 运算符把类型信息当作字符串返回。typeof 返回值有六种可能: "number," "string," "boolean," "object," "function," 和 "undefined."typeof 语法中的圆括号是可选项。1 typeof的运算数未定义,返回的就是 &quo 阅读全文
摘要:
opacity: function(elem, val) { var setting = arguments.length > 1; if ("opacity" in elem.style) { return setting ? elem.style["opacity"] = val: elem.style["opacity"]; } else { // if IE if (elem.filters && elem.filters.alpha) { return setting ? elem.filters.al 阅读全文