
js
zhegecsdn
这个作者很懒,什么都没留下…
展开
-
webpack基础概念解析和示例
webpack核心概念解析和代码实例原创 2023-01-15 13:37:03 · 868 阅读 · 1 评论 -
promise介绍和使用
promise介绍和使用原创 2022-12-07 23:43:32 · 545 阅读 · 0 评论 -
leetcode 142题 环形链表找入环点 python js解法
leetcode142题,环形链表,js和python,哈希表和双指针解法原创 2022-07-10 17:55:31 · 326 阅读 · 0 评论 -
var、let和const的区别和用法
var、let和const的区别和用法原创 2022-07-01 21:41:26 · 246 阅读 · 0 评论 -
js对数字取整和保留小数
取整math.ceil(5/2):向上取整math.round(5/2):四舍五入取整math.floor(5/2):向下取整打开浏览器F12,console中输入可以看到结果Math.ceil(5/2)// 输出 3Math.ceil(2.4)// 输出3Math.round(5/2)// 输出3 四舍五入Math.round(2.499)// 输出2Math.round(2.6)// 输出3Math.floor(5/2)// 输出2Math.floor(2.原创 2020-09-24 11:58:03 · 1583 阅读 · 0 评论