上一页 1 2 3 4 5 6 ··· 15 下一页
  2021年6月25日
摘要: yeoman 全局安装yarn npm install yarn -g 在全局范围安装yo npm install yo -g 或 yarn global add yo安装对应的generatornpm install generator-node -g 或 yarn global add gene 阅读全文
posted @ 2021-06-25 10:21 执候 阅读(66) 评论(0) 推荐(0) 编辑
  2021年4月22日
摘要: 小程序在iphoneX下,底部固定定位的块会被苹果手机的小黑条挡住,其实影响也不大,但是设计过不去,改 公用方法 export const isDiffDeviceModel = async () => { let sysInfo = await wx.getSystemInfoSync(); co 阅读全文
posted @ 2021-04-22 16:15 执候 阅读(730) 评论(0) 推荐(0) 编辑
  2021年3月12日
摘要: 高阶函数是个什么? 所谓高阶函数,就是函数中可以传入另一个函数作为参数的函数。 常用js方法封装1、forEachArray里面forEach是通过Array拓展原型方法实现的Array.prototype.forEach下面我就使用两种方式实现forEach封装 //方法一 let arr=[1, 阅读全文
posted @ 2021-03-12 00:17 执候 阅读(177) 评论(0) 推荐(0) 编辑
  2021年3月3日
摘要: 为什么小程序不使用浏览器的线程模式?而使用双线程模式? 浏览器并不是单线程而是多线程的GUI渲染线程(图形用户界面):负责把html渲染成可视化ui Javascript引擎线程:负责解析和运行代码逻辑定时触发器线程:负责处理setTimeout/setInterval定时器web Worker由于 阅读全文
posted @ 2021-03-03 13:18 执候 阅读(209) 评论(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 执候 阅读(560) 评论(0) 推荐(0) 编辑
  2021年2月4日
摘要: 首先安装typescriptnpm install typescript --savetsconfig.json 1 { 2 "compilerOptions": { 3 "baseUrl": ".", // 工作根目录 4 "rootDir": "src",// 用来指定编译文件的根目录,编译器会 阅读全文
posted @ 2021-02-04 10:42 执候 阅读(588) 评论(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 执候 阅读(401) 评论(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 执候 阅读(1461) 评论(0) 推荐(0) 编辑
  2020年11月29日
摘要: 首先先编写导航栏组件 1你要自定义导航栏首先你要知道导航栏的高度,导航栏由状态栏和胶囊按钮构成通过Object wx.getMenuButtonBoundingClientRect()可以拿到胶囊按钮的信息,通过wx.getSystemInfo可以拿导航栏信息 整个导航栏高度 = statusBar 阅读全文
posted @ 2020-11-29 17:45 执候 阅读(1324) 评论(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 执候 阅读(221) 评论(0) 推荐(1) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页