摘要: 获取设备 所有设备 async function getDevices() { let devices = await navigator .mediaDevices .enumerateDevices() console.info(devices); } getDevices(); 获取到数组的对 阅读全文
posted @ 2023-01-09 15:28 波仔、 阅读(525) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2023-01-09 10:39 波仔、 阅读(390) 评论(0) 推荐(0) 编辑
摘要: // 基于数组封装队列类function Queue() { // 属性 this.items = [] // 方法 // 1.enqueue():将元素加入到队列中 Queue.prototype.enqueue = element => { this.items.push(element) } 阅读全文
posted @ 2023-01-09 10:33 波仔、 阅读(88) 评论(0) 推荐(0) 编辑