06 2021 档案
应用 |前端限制仅允许指定ip访问页面
摘要:封装方法 import axios from 'axios' const allowIP = ['119.133.5.19']; //允许访问 async function getIp() { const res=await axios.get('https://api.ipify.org/')//
js总结 |数组重复问题
摘要:一个数组内的元素是否重复 1.思路:第一个元素与后面的元素对比,无重复,则从第二个元素开始与后面的元素对比...以此类推 let isRepeat=false let arr=[1,2,3,1,3] if(arr.length>1){ for(let i=0;i<arr.length-1;i++){
前端Js自定义相机取景框
摘要:参考文章: 实现的demo:https://www.freesion.com/article/67641324321/ getUserMedia:https://developer.mozilla.org/zh-CN/docs/Web/API/MediaDevices/getUserMedia 一些