网管的博客

js向上、向下取整 js 数组整合

向上取整: Math.ceil(5.1234); // 6 向下取整: Math.floor(5.1234); // 5

作者 作者 发布于 2022-08-17

coyp 函数 深度复制数组里有对象的数组(解决数组堆栈问题)

function copySelf(obj) { var newobj = obj.constructor === Array ? [] : {};         if (typeof obj !== "object") { return; }         for (var i in

作者 作者 发布于 2022-08-15

JavaScript 中... 的用法

他人博客情况3中,如果倒过来是不行的,他只能收集多余的参数。

作者 作者 发布于 2022-08-13