随笔分类 -  前端插件

摘要:3-16 javascript精度问题javascript 历史的浮点计算精度问题 加法 plus function plus(arg1, arg2) { let r1, r2, m; try { r1 = arg1.toString().split(".")[1].length; } catch (e) { r1 = 0; } try 阅读全文
posted @ 2022-03-16 23:22 林见夕 阅读(22) 评论(0) 推荐(0) 编辑
摘要:3-14 minimist.jsconst args = require('minimist')(process.argv.slice(2)) console.log(process.argv.slice(2)) console.log(args) // lijiaming jm-npm-package % node npm/np 阅读全文
posted @ 2022-03-14 15:17 林见夕 阅读(104) 评论(0) 推荐(0) 编辑
摘要:3-14 big.js基本用法 文档链接: http://mikemcl.github.io/big.js/legacy/v6.0.x.html#dp yarn add big.js @types/big.js import { plus, minus, times, div } from "big.js"; // 加 阅读全文
posted @ 2022-03-14 14:59 林见夕 阅读(575) 评论(0) 推荐(0) 编辑
摘要:2-19 hammerjs 使用html <script src="https://cdnjs.cloudflare.com/ajax/libs/hammer.js/2.0.8/hammer.js"></script> <script src="/scripts/tap-gesture.js"></script> <body cl 阅读全文
posted @ 2022-02-19 11:50 林见夕 阅读(100) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
🚀
回顶
收起
  1. 1 404 not found REOL
404 not found - REOL
00:00 / 00:00
An audio error has occurred.