-
数据类型截图查看全部
-
特殊运算符查看全部
-
表达式查看全部
-
//将下面代码复制到控制台,查看演示效果 function typeOf(ele){ var r; if(ele === null) r = 'null'; else if(ele === window) r='window'; else if(ele instanceof Date) r = 'date'; else r = typeof ele; return r; } var arr1=[window,1,true,new Date(),"hahaha",'hh',(function(){}),undefined], arr2=[undefined,(function(){}),"okokok",new Date(),false,2,window,'dhe']; var len = arr1.length, i = 0, countMap1={},countMap2={},t1,t2, TYPES = ['string','boolean','number','undefined','null','function','date','window']; for(;i<len;i++){ t1 = typeOf(arr1[i]); t2 = typeOf(arr2[i]); if(countMap1[t1]){ countMap1[t1]++ }else{ countMap1[t1]=1; } if(countMap2[t2]){ countMap2[t2]++ }else{ countMap2[t2]=1; } } console.log(countMap1); console.log(countMap2);查看全部
-
当前域中的传入参数 -> 内部函数声明 -> 内部变量声明查看全部
-
类型检测小结查看全部
-
类型相同与不同比较查看全部
-
属性标签查看全部
-
for... in 没有顺序查看全部
-
当configurable为true,writable为false的时候,可以通过 object.define 重写对象查看全部
-
属性读写:obj.x:正常使用 obj["x"]:需要进行属性遍历时查看全部
-
下次回来看查看全部
-
知识需要巩固,属性枚举查看全部
-
属性检测,之前没了解过的知识查看全部
-
原型链简介查看全部
举报
0/150
提交
取消