摘要:
1,class类的定义 class WebAR { /** * 初始化Web AR * @param interval 识别间隔(毫秒) * @param recognizeUrl 识别服务地址 * @param isDebug 是否输入调试信息 * @param token 非必需,使用token 阅读全文
posted @ 2020-08-19 22:27
琥珀君
阅读(1163)
评论(0)
推荐(0)
摘要:
1, httpPost(image) { return new Promise((resolve, reject) => { const http = new XMLHttpRequest(); http.onload = () => { try { const msg = JSON.parse(h 阅读全文
posted @ 2020-08-19 18:13
琥珀君
阅读(343)
评论(0)
推荐(0)
摘要:
1, var str = {"name":"菜鸟教程", "site":"http://www.runoob.com"} str_pretty1 = JSON.stringify(str) 阅读全文
posted @ 2020-08-19 18:03
琥珀君
阅读(206)
评论(0)
推荐(0)
摘要:
1, <canvas id="canvas" width="5" height="5"></canvas> 可以用这样的方式获取一个 data-URL var canvas = document.getElementById("canvas"); var dataURL = canvas.toDat 阅读全文
posted @ 2020-08-19 17:41
琥珀君
阅读(876)
评论(0)
推荐(0)
摘要:
1, 阅读全文
posted @ 2020-08-19 17:28
琥珀君
阅读(162)
评论(0)
推荐(0)
摘要:
JS中find(), findIndex(), filter(), forEach(), some(), every(), map()方法 1. find()与findIndex() find()方法,用于找出第一个符合条件的数组成员。它的参数是一个回调函数,所有数组成员依次执行该回调函数,直到找出 阅读全文
posted @ 2020-08-19 17:07
琥珀君
阅读(236)
评论(0)
推荐(0)
摘要:
1, listCamera(videoDevice) { return new Promise((resolve, reject) => { navigator.mediaDevices.enumerateDevices() .then((devices) => { let index = 1; d 阅读全文
posted @ 2020-08-19 16:49
琥珀君
阅读(167)
评论(0)
推荐(0)
摘要:
1, document.querySelector('#openCamera').addEventListener('click', function () { const videoSelect = document.querySelector('#videoDevice'); webAR.lis 阅读全文
posted @ 2020-08-19 15:39
琥珀君
阅读(2452)
评论(0)
推荐(0)
摘要:
1, 阅读全文
posted @ 2020-08-19 14:51
琥珀君
阅读(585)
评论(0)
推荐(0)

浙公网安备 33010602011771号