2
Windows 10 PRO 버전 1511 (OS 빌드 10586.753)에서 Chrome 56.0.2924.76 (64 비트)을 실행 중입니다. Chrome에서 실험용 웹 플랫폼 기능을 사용하도록 설정하고 플래그 --disable-webusb-security 및 관리자로 실행합니다. getDevices와 함께 localhost (https 사용)에서 USB 장치 목록을 얻으려고하지만 크롬 : // 장치 로그에서 많은 장치를 보여주고 있지만 빈 목록이 표시됩니다. 무엇이 문제 일 수 있습니까?WebUSB getDevices 빈 목록
navigator.usb.getDevices().then(function(devices){
console.log(devices);
});
// console outputs []
이 정보는 어디서 유래 되었습니까? – Tauri28
Google 문서에서 : https://developers.google.com/web/updates/2016/03/access-usb-devices-on-the-web#get_access_to_usb_devices – Supersharp
내가보기에 충분히 신중하게 읽지 않은 것처럼 보입니다. 같은 기사 다음. 감사. – Tauri28