摘要: slice 方法可以用来将一个类数组(Array-like)对象/集合转换成一个新数组。你只需将该方法绑定到这个对象上。 一个函数中的 arguments 就是一个类数组对象的例子 function list() { return Array.prototype.slice.call(argumen 阅读全文
posted @ 2022-07-12 17:34 磊~~ 阅读(24) 评论(0) 推荐(1) 编辑
摘要: (34条消息) Promise.then链式调用顺序_高先生的猫的博客-CSDN博客_promise的链式执行顺序 想用Promise异步实现一个递归调用的接口,用来做简单AI的动作序列。发现一开始接触这个then的时候,不是很清楚,参考了网上的一些写法,改成自己的有问题,所以先静下心来研究一下这个 阅读全文
posted @ 2022-07-12 15:51 磊~~ 阅读(31) 评论(0) 推荐(0) 编辑
摘要: import Vue from 'vue'; import Router from 'vue-router'; // 官网可知:下面没有指定webpackChunkName,每个组件打包成一个js文件。 const Foo = () => import('../components/Foo') co 阅读全文
posted @ 2022-07-12 14:09 磊~~ 阅读(1019) 评论(0) 推荐(0) 编辑
摘要: let a = document.createElement("a") a.href = "/static/config/file/产品服务目录.xlsx" a.download = "产品服务目录.xlsx" a.style.display = "none" document.body.appen 阅读全文
posted @ 2022-07-12 10:20 磊~~ 阅读(15) 评论(0) 推荐(0) 编辑