摘要: async extractImg(html: string){ const arr = html.match(/<img.*?>/g); if (arr) return arr.map(item => item.match(/\s+src=['"](.*?)['"]/)![1]); } 阅读全文
posted @ 2022-08-25 20:30 ㊀觉睡到小时候 阅读(62) 评论(0) 推荐(0) 编辑
摘要: async groupBy (sortData:OrderItem[]) { const arr = (array: OrderItem[], f: Function) => { const groups: { [key:string]: OrderItem[], } = {} array.forE 阅读全文
posted @ 2022-08-24 19:31 ㊀觉睡到小时候 阅读(359) 评论(0) 推荐(0) 编辑
摘要: if (!/^1[3456789]\d{9}$/.test(sellerNewReqDto.mobile)) { throw new HttpErrors.BadRequest('手机号码错误'); } if(!/^\w+@\w+\.\w+$/i.test(sellerNewReqDto.email 阅读全文
posted @ 2022-08-10 15:31 ㊀觉睡到小时候 阅读(45) 评论(0) 推荐(0) 编辑
摘要: { "name": "Current TS File", "type": "node", "request": "launch", "args": [ "${workspaceRoot}/src/index.ts" // 入口文件 ], "runtimeArgs": [ "--nolazy", "- 阅读全文
posted @ 2022-08-09 15:19 ㊀觉睡到小时候 阅读(15) 评论(0) 推荐(0) 编辑
摘要: boxList[boxItem].boxRelations.some(item => { if (item.product.id productId) return true; }) 阅读全文
posted @ 2022-08-09 11:54 ㊀觉睡到小时候 阅读(82) 评论(0) 推荐(0) 编辑
摘要: //判断name == bb,以num对外层data进行排序let bb = 'alala'; var data = [{ name : "jiang", age : 22, father: [{name: 'lalala', aihao: 'bo',num: 60},{name: 'alala', 阅读全文
posted @ 2022-08-04 13:03 ㊀觉睡到小时候 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 部署node docker pull node:latest //拉取node镜像 docker images //查看所有镜像 docker run -itd --name node-test node //运行node容器 进入容器 docker exec -it node-test /bin/ 阅读全文
posted @ 2022-06-14 15:20 ㊀觉睡到小时候 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 1.申请沙箱登录账号 2.登录后,申请api凭证和密钥 'use strict'; const ApiContracts = require('authorizenet').APIContracts; const ApiControllers = require('authorizenet').AP 阅读全文
posted @ 2022-02-16 20:26 ㊀觉睡到小时候 阅读(120) 评论(0) 推荐(0) 编辑
摘要: var mysqlr = require('mysql'); var readConnection = mysqlr.createConnection({//创建第一个连接 host: '112.74.82.181', user: 'root', password: 'root.', databas 阅读全文
posted @ 2022-01-19 02:55 ㊀觉睡到小时候 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 1.刷新权限表 flush privileges; 2.初始化无密码,设置密码 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456'; 3.登陆阿里云,设置安全组3306 阅读全文
posted @ 2022-01-13 01:09 ㊀觉睡到小时候 阅读(84) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示