JavaScript & DOM05.JavaScript & DOM 19 décembre 2023 Développement web il3 JavaScript & DOM HE-Arc (DGR) 2022 JavaScript hier • Page web = HTML (+ CSS + JavaScript) • Exécuté par le browser (client) • Interprété Bonnes pratiques15 • Interface pour scripter le navigateur – Accès et modification du contenu via DOM 1https://emscripten.org/ 2http://webassembly.org/ 3http://www.espruino.com/ 4https://nodebots.io/ onsubmit, …) – Embarqués dans les balises (onXXX) Utiliser DOM •0 码力 | 10 页 | 91.95 KB | 1 年前3
CakePHP Cookbook 2.x
Validation Callback Methods Behaviors DataSources Model Attributes Additional Methods and Properties Virtual fields Transactions Core Libraries General Purpose General Purpose Behaviors Behaviors Components users having apache 2.4 and above, you need to modify the configuration file for your httpd.conf or virtual host configuration to look like the following:Options FollowSymLinks your CakePHP site still has problems with mod_rewrite, you might want to try modifying settings for Virtual Hosts. On Ubuntu, edit the file /etc/apache2/sites-available/default (location is distribution-dependent) 0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
users having apache 2.4 and above, you need to modify the configuration file for your httpd.conf or virtual host configuration to look like the following:Options FollowSymLinks AllowOverride your CakePHP site still has problems with mod_rewrite, you might want to try modifying settings for Virtual Hosts. On Ubuntu, edit the file /etc/apache2/sites-available/default (location is distribution-dependent) from all On Mac OSX, another solution is to use the tool virtualhostx5 to make a Virtual Host to point to your folder. For many hosting services (GoDaddy, 1and1), your web server is actually 0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook Documentation 5.xField Because we’ll want a simple way to access the formatted tags for an entity, we can add a virtual/computed field to the entity. In src/Model/Entity/Article.php add the following: // add this use your CakePHP site still has problems with mod_rewrite, you might want to try modifying settings for Virtual Hosts. On Ubuntu, edit the file /etc/apache2/sites-available/default (location is distribution-dependent) another solution is to use the tool virtualhostx [https://clickontyler.com/virtualhostx/] to make a Virtual Host to point to your folder. For many hosting services (GoDaddy, 1and1), your web server is being0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xField Because we’ll want a simple way to access the formatted tags for an entity, we can add a virtual/computed field to the entity. In src/Model/Entity/Article.php add the following: // add this use your CakePHP site still has problems with mod_rewrite, you might want to try modifying settings for Virtual Hosts. On Ubuntu, edit the file /etc/apache2/sites-available/default (location is distribution-dependent) Allow from all On macOS, another solution is to use the tool virtualhostx89 to make a Virtual Host to point to your folder. For many hosting services (GoDaddy, 1and1), your web server is being0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 3.x
method and do additional formatting there. 2. Create accessor methods in your entity to create the virtual fields. 3. Redefine findAll() and use formatResults. In the 3rd case above your code would look the data you want. No afterFind Event or Virtual Fields In previous versions of CakePHP you needed to make extensive use of the afterFind callback and virtual fields in order to create generated data generate entities, the afterFind callback was not possible. Both afterFind and virtual fields can largely be replaced with virtual properties on entities. For example if your User entity has both first and0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
method and do additional formatting there. 2. Create accessor methods in your entity to create the virtual fields. 3. Redefine findAll() and use formatResults. In the 3rd case above your code would look the data you want. No afterFind Event or Virtual Fields In previous versions of CakePHP you needed to make extensive use of the afterFind callback and virtual fields in order to create generated data generate entities, the afterFind callback was not possible. Both afterFind and virtual fields can largely be replaced with virtual properties on entities. For example if your User entity has both first and0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
Field Because we’ll want a simple way to access the formatted tags for an entity, we can add a virtual/computed field to the entity. In src/Model/Entity/Article.php add the following: // add this use Field Because we’ll want a simple way to access the formatted tags for an entity, we can add a virtual/computed field to the entity. In src/Model/Entity/Bookmark.php add the following: use Cake\Collection\Collection; your CakePHP site still has problems with mod_rewrite, you might want to try modifying settings for Virtual Hosts. On Ubuntu, edit the file /etc/apache2/sites-available/default (location is distribution-dependent)0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
Field Because we’ll want a simple way to access the formatted tags for an entity, we can add a virtual/computed field to the entity. In src/Model/Entity/Article.php add the following: // add this use Field Because we’ll want a simple way to access the formatted tags for an entity, we can add a virtual/computed field to the entity. In src/Model/Entity/Bookmark.php add the following: use Cake\Collection\Collection; your CakePHP site still has problems with mod_rewrite, you might want to try modifying settings for Virtual Hosts. On Ubuntu, edit the file /etc/apache2/sites-available/default (location is distribution-dependent)0 码力 | 967 页 | 2.88 MB | 1 年前3
《Slides Dev Web》 07. jQuery
gratuit, OS (licence MIT) • Facilite le développement JS pour les tâches fréquentes : – Manipulations DOM – Manipulations CSS – Réponse aux évenements du navigateur – Effets visuels et animations – Requêtes raccourci pour jQuery() • Utilisation de sélecteurs CSS, id ou classes $(document); // retourne le DOM $("h3").hide(); // cache tous les éléments h3 $(".post"); // sélectionne les éléments de classe "post" ready(function(){ console.log("prêt!") }); ou $(function() { console.log("prêt!") }); Sélection dans le DOM • Sélection $("h1"); // noeud élément $("h1").text(); // noeud texte en lecture • Modification0 码力 | 5 页 | 49.45 KB | 1 年前3
共 65 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













