会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
云音
博客园
首页
新随笔
联系
管理
订阅
2023年2月11日
echarts -- x轴数据显示不全,添加滑动条
摘要: 添加dataZoom属性即可显示滚动条 option = { tooltip: { trigger: 'axis' }, grid: { top:"20%", left: '8%', right: '8%', bottom: '0', containLabel: true }, xAxis: { t
阅读全文
posted @ 2023-02-11 09:44 云里知音
阅读(1118)
评论(0)
推荐(0)
2022年9月27日
Array.from()
摘要: Array.from() 伪数组转数组 1、 将对象转为数组 2、将set结构转为数组 let arr = [1,1,2,6,6,7,8,6]; let set = new Set(arr); console.log(set); //{1,2,6,7,8} let arr1 = Array.from
阅读全文
posted @ 2022-09-27 09:56 云里知音
阅读(83)
评论(0)
推荐(0)
2022年9月23日
数组扁平化
摘要: 数组扁平化:多维数组变一维数组。 方式1: ES6中的flat函数 let arr = [1,2,3,[4,5,6,[7,9,8]]]; console.log( arr.flat( Infinity ) ); 方式2:扩展运算符 var arr = [1,2,3,[4,5,6,[7,9,8]]];
阅读全文
posted @ 2022-09-23 18:22 云里知音
阅读(36)
评论(0)
推荐(0)
the given payload is invalid
摘要: 报错信息:The given payload is invalid. 报错原因:小程序调用wx.login和wx.getUserProfile的顺序不对导致,才导致后端解密验证失败。 解决: 先调用wx.login,再调用wx.getUserProfile
阅读全文
posted @ 2022-09-23 17:11 云里知音
阅读(1734)
评论(0)
推荐(0)
2022年9月19日
常用正则汇总
摘要: 📞号码相关 手机号(以 1 开头):/^(?:(?:\+|00)86)?1\d{10}$/ 手机号(以 13 至19 开头):/^(?:(?:\+|00)86)?1[3-9]\d{9}$/ 手机号(以工信部公布的手机号段开头):/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:
阅读全文
posted @ 2022-09-19 11:00 云里知音
阅读(24)
评论(0)
推荐(0)
2022年2月18日
git 提交报错 : The file will have its original line endings in your working directory.
摘要: 报错: 应该是不同系统对换行的识别不到位导致的 就常识来说文件是在windows下生成的所以换行和 linux 确实不同可能是因为这个导致的 解决: cmd中输入: git config --global core.autocrlf false 重新 git add 即可
阅读全文
posted @ 2022-02-18 17:45 云里知音
阅读(294)
评论(0)
推荐(0)
git : Not a git repository
摘要: 报错: fatal: Not a git repository (or any of the parent directories): .git 提示说没有.git这样一个目录,解决办法如下: 解决办法: git init
阅读全文
posted @ 2022-02-18 17:28 云里知音
阅读(147)
评论(0)
推荐(0)
2021年12月5日
gulp
摘要: gulp 基于nodejs 流 nodejs 安装 使用npm安装gulp gulp工具 开发依赖 全局安装 -g 本地安装 -D 版本 3.8.1 1-新建项目 2-命令行中进入项目 3- 执行 npm init 4- 安装需要用的包 安装gulp npm i gulp@3.9.1 -g npm
阅读全文
posted @ 2021-12-05 22:08 云里知音
阅读(95)
评论(0)
推荐(0)
2021年11月30日
git 常用命令
摘要: git branch 查看本地所有分支 git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支 git branch -r 查看远程所有分支 git checkout -b dev 建立一个新的本地分支dev,并切换到dev分支git checko
阅读全文
posted @ 2021-11-30 22:06 云里知音
阅读(49)
评论(0)
推荐(0)
2021年5月25日
axios的使用
摘要: 一、axios的安装: 终端中输入: npm install axios --save 二、axios的引入: import axios from "axios"; (如果是vue项目,在index.js中引入) 三、axios -> 发送get请求 1) 无参数: 2) 带参数: 将参数写在url
阅读全文
posted @ 2021-05-25 17:28 云里知音
阅读(169)
评论(0)
推荐(0)
下一页
公告