Da traduttori professionisti, imprese, pagine web e archivi di traduzione disponibili gratuitamente al pubblico.
Взаимодействие объекта worker с исходной страницей осуществляется с помощью модели событий и метода postmessage().
communication between a work and its parent page is done using an event model and the postmessage() method.
Ultimo aggiornamento 2018-02-21
Frequenza di utilizzo: 1
Qualità:
После создания объекта worker его можно запустить с помощью метода postmessage(), как показано ниже.
after creating the worker, start it by calling the postmessage() method:
Ultimo aggiornamento 2018-02-21
Frequenza di utilizzo: 1
Qualità:
В зависимости от типа и версии браузера метод postmessage() принимает строку или объект json в качестве единственного аргумента.
depending on your browser/version, postmessage() can accept either a string or json object as its single argument.
Ultimo aggiornamento 2018-02-21
Frequenza di utilizzo: 1
Qualità:
Если метод postmessage() вызывается на главной странице, объект worker обрабатывает сообщение, определяя обработчик onmessage для события message.
when postmessage() is called from the main page, our worker handles that message by defining an onmessage handler for the message event.
Ultimo aggiornamento 2018-02-21
Frequenza di utilizzo: 1
Qualità:
self.addeventlistener('message', function(e) { postmessage(1/x); // intentional error. };
self.addeventlistener('message', function(e) { postmessage(1/x); // intentional error. };
Ultimo aggiornamento 2018-02-21
Frequenza di utilizzo: 1
Qualità: