js 测试数据
程序员文章站
2022-06-10 20:28:21
...
测试数据
var testData={
null:null,
undefined:undefined,
num1:0,
num2:1,
num3:.334455,
num4:-42433,
boolean1:false,
boolean2:true,
str1:'',
str2:'string',
array1:[],
array2:[1,2,3],
array3:[{},{a:3},{c:{d:{e:4}}}],
obj1:{},
obj2:{a:1,b:3},
obj3:{a:{b:{c:{}}}},
obj4:new Date(),
fun1:()=>{},
fun2:function(){},
}