摘要: function replace(value) { const valueArr = value.split('.'); if (valueArr.length > 2) { value = `${valueArr[0]}.${valueArr[1]}`; } const result = (val 阅读全文
posted @ 2021-05-06 11:51 请叫我彭彭 阅读(118) 评论(0) 推荐(0) 编辑
摘要: const data = [{ id: 1, parentid: 0, text: '集团' }, { id: 2, parentid: 0, text: '集团2' }, { id: 3, parentid: 1, text: '集团1-公司1' }, { id: 4, parentid: 1, 阅读全文
posted @ 2020-12-18 11:37 请叫我彭彭 阅读(280) 评论(0) 推荐(0) 编辑
摘要: my.ini配置: [mysql] # 编码格式 default-character-set=utf8 [mysqld] # 端口号 port=3306 #设置服务端的编码格式 character-set-server=utf8 # mysql根目录 basedir=C:\mysql # 放所有数据 阅读全文
posted @ 2020-09-14 16:06 请叫我彭彭 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 最近学习node,在某视频中提到node切换版本,切换版本原因在于以前的项目版本不一致,从而导致频繁安装不同版本的node,如果有了管理工具,就很方便了,怕记不住所以这里记录一下。 下面记录安装步骤 从https://github.com/coreybutler/nvm-windows这个地址下载n 阅读全文
posted @ 2020-08-09 14:10 请叫我彭彭 阅读(3064) 评论(0) 推荐(0) 编辑
摘要: function base64(s) { return window.btoa(unescape(encodeURIComponent(s))) } function exportExcel() { var table = document.getElementsByTagName('table') 阅读全文
posted @ 2020-07-27 17:14 请叫我彭彭 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 大家应该都对es6新出的模板字符串比较熟悉,语义得出返回的是字符串,通过"``"将内容包裹起来形成一个新字符串.方便在于拼接参数直接"${参数}"就可以实现。 但这篇文章的重点在于: 字符串标记 const name1 = '运动'; const name2 = '游戏'; let str = ta 阅读全文
posted @ 2020-07-18 19:16 请叫我彭彭 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 删除 mongod.exe --remove 重新注册服务 mongod.exe --config "D:\Program Files\MongoDB\Server\4.2\bin\mongod.cfg" --install 这样就注册成功拉 阅读全文
posted @ 2020-06-24 16:10 请叫我彭彭 阅读(287) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 获取jssdk配置 /// </summary> /// <returns></returns> public IActionResult GetJSSDKConfig() { string appid = ""; // appid string secret = 阅读全文
posted @ 2020-05-29 11:33 请叫我彭彭 阅读(129) 评论(0) 推荐(0) 编辑
摘要: [TOC] 缓冲运动 弹性运动 阅读全文
posted @ 2020-05-22 20:29 请叫我彭彭 阅读(130) 评论(0) 推荐(0) 编辑
摘要: var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; var newArr = []; for (var index in arr) { var isFind = false; var value = arr[index]; for (var i = 2;  阅读全文
posted @ 2020-04-18 13:06 请叫我彭彭 阅读(1922) 评论(0) 推荐(0) 编辑