摘要: array.reduce() array.filter() todos.filter(todo => todo.done) array.every() array.some() array.sort() 阅读全文
posted @ 2020-12-21 21:32 nihaojs 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 使用 yeild 异步编程 function * abc () { var a = yield API.getGeneralData({ areacode: self.valueAreaVal, year: self.valueDate }); console.log(a); var b = yie 阅读全文
posted @ 2020-12-21 21:27 nihaojs 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 为啥选择history模式? 理由:1. 美观。 2.第三方链接跳回项目使用http地址时,不包含hash模式‘#’之后的地址,返回不到原页面。 Vue-router的两种前端基本访问模式 hash 和history 。 hash模式url后面带#,打包的时候只需要把绝对路径(/)换成相对对路径(. 阅读全文
posted @ 2020-12-21 21:15 nihaojs 阅读(903) 评论(0) 推荐(0) 编辑
摘要: 1. 搭建完项目之后,由于需要引入npm包,所以需要实例化 所以要先执行 npm init 2.引入了相关的npm包npm install vant-weapp -S --production npm install miniprogram-sm-crypto --production 3.要详情里 阅读全文
posted @ 2020-12-21 21:13 nihaojs 阅读(881) 评论(0) 推荐(0) 编辑
摘要: Formatting context(格式化上下文) 是 W3C CSS2.1 规范中的一个概念。它是页面中的一块渲染区域,并且有一套渲染规则,它决定了其子元素将如何定位,以及和其他元素的关系和相互作用。最常见的 Formatting context 有 Block fomatting contex 阅读全文
posted @ 2020-12-21 21:11 nihaojs 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 例子 https://gallery.echartsjs.com/editor.html?c=xbxUJPSiG9 地区json 获取 http://datav.aliyun.com/tools/atlas/#&lat=34.92197103616377&lng=113.5052490234375& 阅读全文
posted @ 2020-12-21 21:09 nihaojs 阅读(1633) 评论(0) 推荐(0) 编辑
摘要: 一.nodejs的安装 1.下载nodejs 访问nodejs官网(https://nodejs.org/en/)选择合适,我选择是mac的 安装完成之后肯定要检查的,打开终端,分别输入 : node-v npm -v 2.用brew安装nodejs a.安装brew 打开终端运行以下命令: /us 阅读全文
posted @ 2020-12-21 20:56 nihaojs 阅读(4971) 评论(0) 推荐(0) 编辑
摘要: 如有不足,欢迎建议与指正。 阅读全文
posted @ 2020-12-21 20:54 nihaojs 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 解决办法: 将core.autocrlf设为false即可解决这个问题,不过如果你和你的伙伴只工作于Windows平台或者Linux平台,那么没问题,不过如果是存在跨平台的现象的话,还是需要考虑一下。 $ git config --global core.autocrlf false 注意: git 阅读全文
posted @ 2020-12-21 20:35 nihaojs 阅读(166) 评论(0) 推荐(0) 编辑
摘要: git 基本操作: 初始化 git init 要提交的文件 git add . / filename 修改的文件提交到本地 git commit -m"commit注释文字" 添加远程主机 git remote add origin < http://XXX.git> 拉取远端 git pull o 阅读全文
posted @ 2020-04-29 09:22 nihaojs 阅读(171) 评论(0) 推荐(0) 编辑