From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/api/usb/onconnect/index.html | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 files/ru/web/api/usb/onconnect/index.html (limited to 'files/ru/web/api/usb/onconnect/index.html') diff --git a/files/ru/web/api/usb/onconnect/index.html b/files/ru/web/api/usb/onconnect/index.html new file mode 100644 index 0000000000..3a7d64e234 --- /dev/null +++ b/files/ru/web/api/usb/onconnect/index.html @@ -0,0 +1,43 @@ +--- +title: USB.onconnect +slug: Web/API/USB/onconnect +tags: + - API + - Method + - Reference + - USB + - WebUSB + - WebUSB API + - onconnect +translation_of: Web/API/USB/onconnect +--- +

{{APIRef("WebUSB API")}}{{SeeCompatTable}}{{securecontext_header}}

+ +

Свойство onconnect интерфейса {{DOMxRef("USB")}} является обработчиком события, который вызывается всегда, когда сопряжённое устройство подключается.

+ +

Синтаксис

+ +
USB.onconnect = connectFunction
+ +

Спецификации

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("Web USB","#dom-usb-onconnect","onconnect")}}{{Spec2("Web USB")}}Изначальное определение.
+ +

Совместимость с браузерами

+ + + +

{{Compat("api.USB.onconnect")}}

-- cgit v1.2.3-54-g00ecf