Fork me on GitHub

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

Coding Poineer

摘要: react 渲染的3种方式 react 中的 state(状态,props属性) 可以对应 vue 中的 data ,但是是单向数据传输,数据流自顶向下,组件的数据只能影响其后的组件 state 与 props 的区别:state可以交互改变,props 不可变 setState 并不会立即改变 t 阅读全文
posted @ 2021-03-30 14:39 365/24/60 阅读(69) 评论(0) 推荐(0)
摘要: 新建本地分支:git checkout -b 新分支名 创建并切换 或 git checkout 新分支名; git branch 分支名切换 将本地分支与远程分支建立连接:git branch --set-upstream-to origin/远程分支名称 本地分支名称 刷新分支关系:git fe 阅读全文
posted @ 2021-03-29 21:03 365/24/60 阅读(200) 评论(0) 推荐(0)
摘要: const store = new Vuex.Store({ ...options }) Vuex.Store 构造器选项 Vuex.Store实例属性 Vuex.Store实例方法 组件内的辅助函数 常见问题 // Vuex 中更改state, state 根级属性修改需要 setter 中修改, 阅读全文
posted @ 2021-01-29 15:33 365/24/60 阅读(97) 评论(0) 推荐(0)
摘要: 返回迭代对象 concat: array.entries() >返回一个迭代对象(value包含:key+值) keys: array.keys() >返回包含下标的迭代对象 返回新数组 fill: array.fill(value, 【start|0】, 【end|length】) >新数组 fi 阅读全文
posted @ 2021-01-28 14:45 365/24/60 阅读(132) 评论(0) 推荐(0)
摘要: 手写call 手写apply 手写bind 手写new 手写防抖debounce 手写节流throttle 手写迭代器interator **这里很多手写代码都是基于闭包,闭包如何能保持访问外层函数的变量? **执行栈会将调用到的函数的执行上下文( 变量环境、词法环境、this、outer), 压入 阅读全文
posted @ 2021-01-27 13:45 365/24/60 阅读(209) 评论(0) 推荐(0)
摘要: Document Vue创建组件的 4种方式 template模板生成 render 函数,render函数执行得到 Vnode -> 真实 DOM 节点 component方法 全局注册: Vue.component(组件名 , {}) 局部注册: var 组件名 = {data:, method 阅读全文
posted @ 2021-01-26 13:30 365/24/60 阅读(354) 评论(0) 推荐(0)
摘要: 所有 构造函数.protoType.__proto__ 最终指向 Object.protoType , Object.protoType.__proto__ 指向 null 所有 构造函数.__proto__ 最终指向 Function.protoType , 包括 function Functio 阅读全文
posted @ 2021-01-26 08:59 365/24/60 阅读(89) 评论(0) 推荐(0)
摘要: // 浅拷贝:拷贝的是引用对象 Object.asign(target , source) // 通过 source 的 getter 和 target 的 setter 进行数据拷贝 , 如果源对象中有属性的值是对象,则只会复制一个引用值 // 数组 API Array.protoType.con 阅读全文
posted @ 2021-01-25 17:29 365/24/60 阅读(71) 评论(0) 推荐(0)
摘要: MDN : 官方文档 Object.defineProperty() 方法会直接在一个对象上 定义/修改 一个 新属性/现有属性(不在原型链,属于自身属性),并返回此对象 3个参数:Object.defineProperty( 目标对象 , 变动属性 , 配置对象) 这些属性可以通过 delete 阅读全文
posted @ 2021-01-08 17:36 365/24/60 阅读(1612) 评论(0) 推荐(0)
摘要: 跳转阅读:Vue Api细分梳理 Vue-router:API整理 routerLink详解 routerView详解 router实例 路由对象(route 不是 router) 问题部分 常见问题: 如果要使用嵌套路由,须在父组件中增加 router-view 函数插槽 路由元meta,查看路由 阅读全文
posted @ 2021-01-07 17:40 365/24/60 阅读(157) 评论(0) 推荐(0)
摘要: 跳转到-> vue-router 目录: 全局API及部分全局配置 Vue内的选项 选项-数据 选项-DOM Vue钩子函数 选项-资源 选项-组合 Vue 实例属性 Vue实例--属性 Vue实例--数据有关的方法 Vue实例--事件有关的方法 Vue实例--生命周期有关的方法 Vue实例--指令 阅读全文
posted @ 2020-12-29 18:46 365/24/60 阅读(278) 评论(0) 推荐(0)
摘要: 先提一下修改颜色原理:svg适量矢量图的线条颜色通过stroke:xxx控制,删除.svg文件的原生stroke属性,便可继承包装组件通过prop传进去的新stroke值 如不想手动给svg去色,可借用阿里巴巴图标库批量操作 通过icon-font快速给图标批量去色 1.安装依赖 npm insta 阅读全文
posted @ 2020-12-28 15:31 365/24/60 阅读(3793) 评论(0) 推荐(0)
摘要: 这里上半部分是13种不同的点击显示动画,可是页面刷新后续点击并未如期而至 **原因:**wowjs的动画或自定义的动画默认只显示1次,在页面刷新便会触发,所以后续没有刷新的地方是不会触发的 解决方法: * 第一种:在外层套一层div,div根据点击事件v-if 为true或false * 第二种:使 阅读全文
posted @ 2020-12-24 10:16 365/24/60 阅读(1019) 评论(0) 推荐(0)
摘要: 2048 翻牌小游戏 微信1 微信2 微信3 微信4 vscode开发微信小程序插件 项目结构 //最新 └─ empty-folder/ ·································· 项目所在目录 ├─ pages/ ·&# 阅读全文
posted @ 2020-12-21 21:36 365/24/60 阅读(100) 评论(0) 推荐(0)
摘要: 走马灯(vue) // 尽量将所有的变化写在transform中,否则样式计算会变复杂,引起抖动 <style> @keyframes toShow { //放大时动画 from { transform: scale(0.8); z-index: 2; } to { transform: trans 阅读全文
posted @ 2020-12-21 18:12 365/24/60 阅读(531) 评论(0) 推荐(0)
摘要: // 安装promise测试插件 npm i promises-aplus-tests -D // package.json文件配置下脚本执行部分 "scripts": { "test": "promises-aplus-tests promiseKB.js(填入自己开发的promise的名字)" 阅读全文
posted @ 2020-12-19 11:46 365/24/60 阅读(1516) 评论(0) 推荐(1)
摘要: js执行过程分为2部分词法分析、执行代码 易错点分析变量提升 console.log(a); //undefined var a = 123; // 等同于 var a; console.log(a) a = 123 // 进阶 console.log(v1); var v1 = 100; func 阅读全文
posted @ 2020-11-23 22:33 365/24/60 阅读(135) 评论(0) 推荐(0)
摘要: flex容器: flex-direction flex-wrapper flex justify-content align-items: 主轴交叉轴 align-content:存在换行时,交叉轴的排列方法 flex项目属性 order:排列顺序 flex-grow flex-basis flex 阅读全文
posted @ 2020-11-23 19:15 365/24/60 阅读(109) 评论(0) 推荐(0)
摘要: ajax 并不是一种新的模块或库,而是Asynchronous JavaScript and XML(异步的 JavaScript 和 XML) 创建一个node 服务器 const http = require('http'); const fs = require('fs') const ser 阅读全文
posted @ 2020-11-22 23:47 365/24/60 阅读(110) 评论(0) 推荐(0)
摘要: 打开命令行窗口(win+r 再输入 cmd) netstat -ano |findstr "端口号" 查看每个端口号对应的进程 netstat -ano:查看所有端口的使用情况 (此步可省略)tasklist |findstr "进程id号" 查看进程 id 号对应的应用 杀掉对应的进程 taskk 阅读全文
posted @ 2020-11-17 09:06 365/24/60 阅读(171) 评论(0) 推荐(0)