- 博客(11)
- 收藏
- 关注
原创 vue将二维数组对象转为一维数组对象
title: [ { id: 1, name: '财会经济', children: [ {id: 11, name: '初级会计'}, {id: 12, name: '初级会计'} ] }, { id: 2, name: '建筑工程', children: [...
2022-05-11 17:50:30 792
原创 uniapp动态获取swiper的高度
布局一下高度为动态的<swiper class="swiper" :style="{height: windowHeight + 'px'}" :current="currentTab" @change="onSwiperChange"><swiper>data() { return { windowHeight: '', // 页面高度 }},methods:{
2022-05-11 17:05:55 296
原创 git创建新的分支无法拉取代码的问题
有时候创建分支之后执行git pull会出现$ git pull There is no tracking information for the current branch.Please specify which branch you want to merge with.See git-pull(1) for details. git pull <remote> <branch>If you wish to set tracking informati
2021-11-09 11:15:14 775
原创 git打tag流程
git tag (查看tag)git tag -a 1.0.2.20210726 -m ‘release 1.0.2’ (打tag) (1.0.2是版本号、0726日期)git push origin 1.0.2.20210726如果tag打错了,要删除本地和远程的版本号,再重新tag,步骤:1、git tag -d 版本号 (删除本地tag)2、git push origin :refs/tags/要删除的远程版本号(例如:2.3.9.20210402)3、然后进行打tag的正常步骤
2021-09-11 12:01:49 608
原创 npm 报错 The operation was rejected by your operating system. npm ERR! It‘s possible that the file was
解决办法:1 删除本机电脑用户目录下的.npmrc文件eg: 删除C:\Users\username.npmrc2 删除 node.js文件3 删除C:\Users\Lenovo\AppData\Roaming里的相关文件切记得删干净 不然很容易报错
2021-09-11 11:52:54 2303
原创 git常用命令
git status (查看当前状态)git add . (将所有更改的文件添加到暂存区域)git commit -m 'xxxx' (添加文件更改描述)git reset --soft HEAD^ (撤销暂存)git push (提交到仓库)git branch (查看本地所有分支)git branch -a (查看所有的分支)git push origin demo:demo (将分支提交到仓库 demo分支的名字demo文件名)...
2021-09-07 18:02:48 83
原创 js中数组常用方法总结
1. Array.map() // 此方法对数组中的每个元素进行处理,得到新的数组; // 特点:不改变原数组; let arr = [2, 4, 6, 8]; let newArr = arr.map((value) => { return value * 2; }); console.log(arr); // 2,4,6,8 console.log(newArr); // 4,8,12,16 2.Array.forEach() //此方法是将数组中..
2021-08-28 16:47:29 153
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人