随笔分类 -  JavaScript

摘要:const MAX = Number.MAX_SAFE_INTEGER; const MIN = Number.MIN_SAFE_INTEGER; const intLen = `${MAX}`.length - 1; /** * @Description: 判断输入的数字是否在javascript 阅读全文
posted @ 2022-10-19 15:46 春春& 阅读(274) 评论(0) 推荐(0)
摘要:element.scrollIntoView() 参数默认为true1.什么是scrollIntoView?scrollIntoView是一个与页面(容器)滚动相关的API 2.如何调用?element.scrollIntoView() 参数默认为true参数为true:调用该函数,页面发送滚动,使 阅读全文
posted @ 2022-08-30 16:50 春春& 阅读(2136) 评论(0) 推荐(0)
摘要:实现效果:可得到三种录音数据,pcm,wav,mp3 等 官方api入口:点我(网不好的童鞋可以看最下面的api截图) 官方案例入口:点我 官方源码git入口:点我 一:安装插件 js-audio-recorder cnpm i js-audio-recorder --s 二:安装将格式转换为mp3 阅读全文
posted @ 2022-08-12 19:00 春春& 阅读(3723) 评论(0) 推荐(0)
摘要:查看代码 import axiox from 'axios' import store from "@/store"; import utils from "@/utils"; import Qs from 'qs' import { Message } from "element-ui"; con 阅读全文
posted @ 2022-04-18 18:58 春春& 阅读(53) 评论(0) 推荐(0)
摘要:SparkMD5工具 查看代码 /* SparkMD5 - https://github.com/satazor/js-spark-md5 */ /* SparkMD5 - https://codechina.csdn.net/mirrors/satazor/js-spark-md5/-/blob/ 阅读全文
posted @ 2022-02-16 18:29 春春& 阅读(346) 评论(0) 推荐(0)
摘要:// import {singleFileDownload} from '@/utils/downloads' import cryptoJs from 'crypto-js' import { Message } from "element-ui"; /** * @description 本地存储 阅读全文
posted @ 2022-02-14 14:08 春春& 阅读(83) 评论(0) 推荐(1)
摘要:import JSZip from "jszip"; import fileSaver from "file-saver"; import axios from 'axios' import { Message, Notification } from "element-ui"; //下载单个文件 阅读全文
posted @ 2022-02-14 14:02 春春& 阅读(587) 评论(0) 推荐(0)