To enable external ads using JavaScript in the page embedding the player, you set the external ad parameter to true by calling the enableExternalAds method of the Ad Module in the Player API and set a callback function for the External Ad event.
Para habilitar los anuncios externos con JavaScript en la página en la que está incrustado el reproductor, debe definir el parámetro de anuncios externos en true llamando al método enableExternalAds del módulo de anuncios de Player API, y definir una función de devolución de el ejemplo siguiente.
JavaScript works best with events and callback functions.
Javascript makes heavy use of anonymnous function callbacks, which can be saved within JSON object variables.
Javascript hace uso intenso de las funciones anónimas de llamadas de retorno, que pueden guardarse en variables del objeto JSON.
The Cookiebot script loads and constructs a client side JavaScript object named 'Cookiebot' which exposes the following public properties, methods, events and callback functions.
El script de Cookiebot carga y construye un objeto de JavaScript llamado 'Cookiebot' para el cliente, tiene asociado las siguientes propiedades públicas, métodos, eventos y funciones callback.
To make REST calls from a web browser across domains you can use JSONP to wrap the response in a JavaScript callback function.
JavaScript tip: You can use any argument names you like in the callback functions; when the callback is invoked the first argument will always be the request and the second will always be the response.
JavaScript tip: Usted puede utilizar cualquier nombre que quiera para los argumentos en las funciones callback; cuando la callback es invocada el primer argumento siempre será la petición y el segundo siempre será la respuesta.
The code uses the jQuery function $.getJSON, which performs the Ajax call and, on response, stores the weekdays names in a local JavaScript variable data and passes the variable to the callback function.
El código usa la función jQuery $.getJSON, que realiza una llamada con Ajax y, al recibir la respuesta, almacena los días de la semana en una función callback.
callback (Optional): JavaScript function to execute when the script has finished loading. runScripts
callback (Opcional): Función JavaScript para ejecutar cuando el script ha terminado de cargar. runScripts
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple