- 博客(5)
- 收藏
- 关注
原创 js学习笔记3
内部对象 标准对象 typeof 123 'number' typeof "123" 'string' typeof true 'boolean' typeof NaN 'number' typeof [] 'object' typeof {} 'object' typeof Math.abs 'function' typeof undefined 'undefined' 1.Date 基本使用 var now = new Date(); console.log(now); consol
2022-05-31 20:07:26
99
原创 js学习笔记2
js学习——函数 定义函数 方式一 function abs(x){ if(x>=0) { } else x=-x; return x; } 方式二 var abs1 = function (x){ if (x>0) { return x; } else return -x; } function(x)是一个匿名函数。 方式一方式二等价。 调用函数 abs(10) /
2022-05-29 19:40:38
91
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅