Ce qui est très pratique pour tester et expérimenter de nouvelles fonctionnalités. Vous pouvez aussi donner, avec la ligne de commande, un fichier JavaScript à exécuter.
You can also pass in, on the command line, a JavaScript program file to run, in which case the program is run automatically.
Localisez le fichier JavaScript à ajouter, puis cliquez sur Ouvrir.
Il existe deux façons d'inclure un fichier JavaScript à l'aide de l'API Joomla.
There are two ways to include a JavaScript file using the Joomla! API.
Mettez le fichier Javascript à jour dans le dossier integration/javascript selon les besoins.
Update the JavaScript file in the integration/javascript folder, as required.
Pire encore, si vous générez votre code JavaScript de manière transparente, vous n'aurez aucun fichier JavaScript à examiner et le processus de recherche de l'endroit où cette erreur s'est produite est encore plus frustrant.
Even worse, if you generate your JavaScript transparently, you wont have any JavaScript file to look into and the all process of finding where this error occurred is even more frustrating.
Il regarde un dossier plein de fichiers CoffeeScript et automatiquement fusionne et compile tous dans un seul fichier JavaScript à chaque fois qu'un changement est détecté.Le script doit être exécuté à partir de la CLI Ruby.Les instructions...
It watches a folder full of CoffeeScript files and automatically merges and compiles all of them into one single JavaScript file whenever a change is detected.The script needs to be run from the Ruby CLI.Installation and usage instructions are provided...
Pour adapter ce code à ses exigences Thomas s'est mis en devoir de faire passer les phrases dessinées à cet échange du statut de variables dans un fichier javascript à celui de données dans ses fichiers XML.
To adapt this code to his requirements, Thomas set out to change the sentences designed for this exchange from the status of variables in a javascript file to that of data in his XML files.
Other results
Pour notre exemple, on veut vérifier tous les fichiers JavaScript à l'exception du gruntfile.js.
For instance, in our sample we want to check all the JavaScript files except gruntfile.js.
Si vous avez installé différents scripts, votre fichier JavaScript a probablement accumulé des déclarations d'import inutiles.
If you've been installing several different scripts, your JavaScript file has probably accumulated unnecessary import statements.
Toutefois, la suppression des espaces inutiles et le déplacement des fichiers JavaScript à la fin du corps peut déjà faire quelques merveilles.
But even doing something so simple, such as deleting unnecessary spaces and moving JavaScript files to the end of the body, can work wonders.
Placez les fichiers javascript à la fin du code ou utilisez l'attribut HTML 'async' afin de charger les fichiers de manière asynchrone.
Avoid render blocking scripts Place javascript files at the end of the body or use the 'async' attribute to load them asynchronously.
Si votre fichier JavaScript a plusieurs lignes avec importScript, importScriptPage, ou importArticles écrit dessus, vous devriez pouvoir les combiner ! Regardez l'exemple ci-dessous.
If your JavaScript file has several lines of code that say importScript, importScriptPage, or importArticles, you may be able to combine them!
Placez tous vos fichiers Javascript à la fin de votre HTML (plutôt qu'au début).
Put all your Javascript files at the end of your HTML (rather than at the beginning).
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.