上一页 1 2 3 4 5 6 7 ··· 16 下一页
  2021年3月12日
摘要: 高阶函数是个什么? 所谓高阶函数,就是函数中可以传入另一个函数作为参数的函数。 常用js方法封装1、forEachArray里面forEach是通过Array拓展原型方法实现的Array.prototype.forEach下面我就使用两种方式实现forEach封装 //方法一 let arr=[1, 阅读全文
posted @ 2021-03-12 00:17 执候 阅读(354) 评论(0) 推荐(0)
  2021年3月3日
摘要: 为什么小程序不使用浏览器的线程模式?而使用双线程模式? 浏览器并不是单线程而是多线程的GUI渲染线程(图形用户界面):负责把html渲染成可视化ui Javascript引擎线程:负责解析和运行代码逻辑定时触发器线程:负责处理setTimeout/setInterval定时器web Worker由于 阅读全文
posted @ 2021-03-03 13:18 执候 阅读(240) 评论(0) 推荐(0)
  2021年2月5日
摘要: 使用airbnb规范 /** * https://www.npmjs.com/package/eslint-config-airbnb-typescript */上安装 参考上述链接 @typescript-eslint/eslint-plugin @typescript-eslint/parser 阅读全文
posted @ 2021-02-05 11:25 执候 阅读(616) 评论(0) 推荐(0)
  2021年2月4日
摘要: 首先安装typescriptnpm install typescript --savetsconfig.json 1 { 2 "compilerOptions": { 3 "baseUrl": ".", // 工作根目录 4 "rootDir": "src",// 用来指定编译文件的根目录,编译器会 阅读全文
posted @ 2021-02-04 10:42 执候 阅读(617) 评论(0) 推荐(0)
  2021年2月3日
摘要: 首先安装1、npm install --save-dev husky然后在package.json里面加入 1 "husky": { 2 "hooks": { 3 "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" 4 } 5 }, 2、npm instal 阅读全文
posted @ 2021-02-03 20:01 执候 阅读(433) 评论(0) 推荐(0)
  2021年1月7日
摘要: 在video.js基础上封装了一个reactVideo弹窗组件 npm install video.js --save 首先npm 安装video.js 1 //ReactVideo.tsx 2 import React, { Component, Fragment } from 'react'; 阅读全文
posted @ 2021-01-07 20:40 执候 阅读(1625) 评论(0) 推荐(0)
  2020年11月29日
摘要: 首先先编写导航栏组件 1你要自定义导航栏首先你要知道导航栏的高度,导航栏由状态栏和胶囊按钮构成通过Object wx.getMenuButtonBoundingClientRect()可以拿到胶囊按钮的信息,通过wx.getSystemInfo可以拿导航栏信息 整个导航栏高度 = statusBar 阅读全文
posted @ 2020-11-29 17:45 执候 阅读(1420) 评论(0) 推荐(0)
  2020年7月5日
摘要: git安装这个没啥说的,https://git-scm.com/downloads 自己到官网去下载即可 基于vscode比较好用的几个git相关插件 Git Graph Git History GitLens — Git supercharged 可以查找到谁做过修改 vscode-filehea 阅读全文
posted @ 2020-07-05 14:47 执候 阅读(233) 评论(0) 推荐(1)
  2020年5月31日
摘要: //首先简单介绍受控组件,每个都要去change事件触发 import React from 'react' class Form extends React.Component { constructor(props) { super(props); this.state = { username 阅读全文
posted @ 2020-05-31 22:26 执候 阅读(184) 评论(0) 推荐(0)
摘要: 首先npm和node环境就不说了,不懂得参考我写的vue2.0安装,里面有npm和node安装的介绍react开发参考官网创建react项目搭建开发环境,安装的是最新版npx create-react-app my-app(这个是项目名称)安装完成后cd my-app 直接npm run start 阅读全文
posted @ 2020-05-31 10:40 执候 阅读(293) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 16 下一页