上一页 1 2 3 4 5 6 ··· 30 下一页
摘要: 高手总结的文档:https://www.zhangxinxu.com/wordpress/2014/08/so-powerful-svg-smil-animation/ 在线工具:https://editor.method.ac 阅读全文
posted @ 2022-07-29 10:40 James2019 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 以下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 阅读(530) 评论(0) 推荐(0) 编辑
摘要: // 横屏写的,坚屏展示,需旋转270度 rotateBase64Img(src: any, callback: any) { const canvas = document.createElement('canvas') const ctx: any = canvas.getContext('2d 阅读全文
posted @ 2022-06-02 18:25 James2019 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 小程序请求接口失败: 把接口域名放到以下检查 https://www.myssl.cn/tools/check-server-cert.html 提示 阅读全文
posted @ 2022-04-27 21:40 James2019 阅读(1022) 评论(0) 推荐(0) 编辑
摘要: 有个网站,用纯色来查: http://www.gdzzz.com/pm/ . 阅读全文
posted @ 2022-01-08 22:12 James2019 阅读(1101) 评论(0) 推荐(0) 编辑
摘要: 之前网上找了个身份证正则,一直用着挺好,直到客户提到 360732202009290611 这个身份证号报警 开始我还不信,网上查这个号码是真的,以下正则替换解决问题 export const checkIDCard = (value: string) => { var num = value.to 阅读全文
posted @ 2022-01-06 11:30 James2019 阅读(1270) 评论(0) 推荐(0) 编辑
摘要: 空值合并运算符 name ?? 'Tom' 它是 ES2020 的一个新特性, 只会在左侧表达式是 null 或 undefined 时返回右侧的表达式 不同于逻辑或,空值合并运算符会允许把 0 和 空字符串 '' 作为有效的数值。 必须在配合逻辑或/与(&& ||) 使用时用上括号,否则报错 (f 阅读全文
posted @ 2021-12-17 15:40 James2019 阅读(314) 评论(0) 推荐(0) 编辑
摘要: vscode 中 边写 readme.md 边预览, 用快捷键 打开预览:先按Ctrl + K,然后放掉,紧接着再按 v (英文键盘模式下) 详见这里 . 阅读全文
posted @ 2021-12-15 18:53 James2019 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 使用示例: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conte 阅读全文
posted @ 2021-12-15 11:57 James2019 阅读(1248) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 30 下一页