会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
James的博客园
博客园
首页
新随笔
联系
管理
上一页
1
2
3
4
5
6
···
31
下一页
2022年9月16日
多项同步请求,一起返回结果
摘要: 1. 放在方法里 const nameToCode = async (nameArr) => { const promiseArr = []; for (const itemName of nameArr) { const promise = new Promise((resolve, reject
阅读全文
posted @ 2022-09-16 19:20 James2019
阅读(63)
评论(0)
推荐(0)
2022年8月18日
day.js 常用方法
摘要: 文档地址 (中文) Day.js 是一个轻量的 JavaScript 时间日期处理库,和 Moment.js 的 API 设计保持完全一样. 如果你曾经用过 Moment.js, 那么你已经知道如何使用 Day.js Day.js 基本用法如下,相同的API,相同的链式操作。 dayjs().sta
阅读全文
posted @ 2022-08-18 16:40 James2019
阅读(2204)
评论(0)
推荐(0)
2022年7月30日
nest.js
摘要: nest-typeorm学习:数据库实体设计与操作 https://blog.csdn.net/weixin_44828005/article/details/116435758
阅读全文
posted @ 2022-07-30 22:43 James2019
阅读(98)
评论(0)
推荐(0)
2022年7月29日
svg 贝塞尔
摘要: 高手总结的文档:https://www.zhangxinxu.com/wordpress/2014/08/so-powerful-svg-smil-animation/ 在线工具:https://editor.method.ac
阅读全文
posted @ 2022-07-29 10:40 James2019
阅读(36)
评论(0)
推荐(0)
2022年6月2日
canvas 局部 复制 粘贴
摘要: 以下demo,测试地址 <!DOCTYPE html><html><head><meta charset="utf-8"><title>HTML canvas getImageData()方法使用-基础教程(nhooo.com)</title></head><body><canvas id="myC
阅读全文
posted @ 2022-06-02 18:35 James2019
阅读(612)
评论(0)
推荐(0)
canvas 旋转图片
摘要: // 横屏写的,坚屏展示,需旋转270度 rotateBase64Img(src: any, callback: any) { const canvas = document.createElement('canvas') const ctx: any = canvas.getContext('2d
阅读全文
posted @ 2022-06-02 18:25 James2019
阅读(191)
评论(0)
推荐(0)
2022年5月21日
JSON.stringify 过滤字段
摘要: let obj = {name: 'lili', age: 21, children: [{name: 'lucy', age: 18}]}let str = JSON.stringify(obj, ["name", "children"]) console.log(str) // '{"name"
阅读全文
posted @ 2022-05-21 23:23 James2019
阅读(280)
评论(0)
推荐(0)
2022年4月27日
微信小程序 真机调用接口失败:ERR_CERT_AUTHORITY_INVALID
摘要: 小程序请求接口失败: 把接口域名放到以下检查 https://www.myssl.cn/tools/check-server-cert.html 提示
阅读全文
posted @ 2022-04-27 21:40 James2019
阅读(1184)
评论(0)
推荐(0)
2022年1月8日
屏幕坏点简单检查方法(网页纯色检查)
摘要: 有个网站,用纯色来查: http://www.gdzzz.com/pm/ .
阅读全文
posted @ 2022-01-08 22:12 James2019
阅读(1137)
评论(0)
推荐(0)
2022年1月6日
JS 最新正确的身份证号码正则
摘要: 之前网上找了个身份证正则,一直用着挺好,直到客户提到 360732202009290611 这个身份证号报警 开始我还不信,网上查这个号码是真的,以下正则替换解决问题 export const checkIDCard = (value: string) => { var num = value.to
阅读全文
posted @ 2022-01-06 11:30 James2019
阅读(1325)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
31
下一页
公告