07 2021 档案

摘要:call 、bind 、 apply 这三个函数的第一个参数都是 this 的指向对象,第二个参数差别就来了: call 的参数是直接放进去的,第二第三第 n 个参数全都用逗号分隔,直接放到后面 obj.myFun.call(db,'成都', ... ,'string' )。 apply 的所有参数 阅读全文
posted @ 2021-07-27 20:04 阿兰儿 阅读(53) 评论(0) 推荐(0)
摘要:express: js 文件: npm install express --save 安装express 编写命令,引入express, 创建实例app 设置get 方法,路径,返回值。 listen监听端口号: const express= require('express'); const ap 阅读全文
posted @ 2021-07-26 12:21 阿兰儿 阅读(178) 评论(0) 推荐(0)
摘要:Class ES6的新特性 class Vue { constructor(options) { this.getters={} this.a='a' Object.keys(options).forEach(name=>{ Object.defineProperty(this.getters, n 阅读全文
posted @ 2021-07-26 10:14 阿兰儿 阅读(71) 评论(0) 推荐(0)
摘要:import Vue from 'vue'; import Vuex from 'vuex'; import getters from './getters'; Vue.use(Vuex); const modulesFiles = require.context('./modules', fals 阅读全文
posted @ 2021-07-21 19:07 阿兰儿 阅读(494) 评论(0) 推荐(0)
摘要:vuepress 是基于vue的静态网站生成器 阅读全文
posted @ 2021-07-15 09:41 阿兰儿 阅读(47) 评论(0) 推荐(0)
摘要:最近遇到了事件循环的问题,于是决定好好的研究一番。看了一篇文章感觉讲的特别好。 我们都知道event loop的执行顺序是: 一开始整个脚本script块会做为一个宏任务执行,(宏任务) 执行过程中会有一个主线程,一个宏任务队列,一个微任务队列。同步代码会按照顺序进入主线程,宏任务进入宏任务队列,微 阅读全文
posted @ 2021-07-01 12:44 阿兰儿 阅读(449) 评论(0) 推荐(0)