01 2023 档案
摘要:获取设备 所有设备 async function getDevices() { let devices = await navigator .mediaDevices .enumerateDevices() console.info(devices); } getDevices(); 获取到数组的对
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content
阅读全文
摘要:// 基于数组封装队列类function Queue() { // 属性 this.items = [] // 方法 // 1.enqueue():将元素加入到队列中 Queue.prototype.enqueue = element => { this.items.push(element) }
阅读全文