El paquete purescript-math contiene definiciones de tipos para las funciones definidas en el objeto JavaScript Math, así que instalémoslo
The purescript-math package contains type definitions for functions defined on the JavaScript Math object, so let's install it
Notese que la hora de comienzo está dividida por 1000 antes de crear el objeto JavaScript Date para ello.
Note that the start time is being divided by 1000 before we create a JavaScript Date object from it.
Este tutorial ha sido escrito para los usuarios que deseen aprender el objeto JavaScript Prototype y su uso.
This tutorial has been written for users willing to learn the JavaScript Prototype object and its usage.
Primero, lo que tenemos que hacer es pasar weaponJSON a JSON.parse y luego almacenar el objeto JavaScript devuelto en parsedJSON.
So first, what we do is run weaponJSON through JSON.parse and then store the return JavaScript object into parsedJSON.
Digamos que quieres obtener un dato del objeto JavaScript devuelto por JSON.parse y pongas el objeto JavaScript con la variable parsed.
Let's say you want to grab data from the JavaScript object returned from JSON.parse and let's say you put that JavaScript object into the variable "parsed".
Muchos métodos en el objeto Javascript Array son diseñados para ser generalmente llamados para todos los objetos que "parecen" Arrays.
Many methods on the JavaScript Array object are designed to be generally applied to all objects which "look like" Arrays.
Suponiendo que en tu web utilizas el script Google Analytics por defecto, el cual define el objeto JavaScript ga, lo que tienes que hacer es meter la siguiente línea después de incluir el código de rastreo
Assuming that in your website you use the Google Analytics script by default, which defines the JavaScript object ga, what you have to do is put the following line after including the tracking code
Alte rezultate
Compruebe que el objeto al que Javascript hace referencia esté nombrado en el código.
extiende el objeto String de Javascript con algunas funciones útiles.
extend the JavaScript String object with a few useful functions.
Cuando representas fechas, la mejor elección es usar el objeto Date incorporado en JavaScript.
When representing dates, the best choice is to use the built-in Date utility in JavaScript.
Dado que no hay un método estándar para hacer esto, Mozilla proporciona la misma funcionalidad en el objeto global XMLHttpRequest de JavaScript.
Since there is no standard method of doing this, Mozilla provides the same functionality in the global JavaScript XMLHttpRequest object.
Solo déjalo como "indexOf - método para el objeto String en JavaScript".
Just leave it as "indexOf - method for the String object in JavaScript".
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