What's the preferred way to add a DOM ready handler?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript
- Ambito
- documentation
Direzione di ricerca
Inizia confrontando la pagina collegata su document-ready di learn.jquery.com con il riferimento ready di api.jquery.com e verifica le indicazioni attuali di jQuery. Il lavoro è completato quando il Learning Center e il riferimento API non forniscono più indicazioni contrastanti sui gestori di DOM ready.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
learn.jquery.com's document ready page suggests,
Experienced developers sometimes use the shorthand
$()for$( document ).ready(). If you are writing code that people who aren't experienced with jQuery may see, it's best to use the long form.
However, api.jquery.com's reference suggests,
jQuery offers several ways to attach a function that will run when the DOM is ready. All of the following syntaxes are equivalent:
$( handler )$( document ).ready( handler )$( "document" ).ready( handler )$( "img" ).ready( handler )$().ready( handler )As of jQuery 3.0, only the first syntax is recommended; the other syntaxes still work but are deprecated.
These suggestions feel at odds with each other. Given the deprecation notice, it seems like learn.jquery.com's suggestion is outdated.
- Lingua principale
- JavaScript
- Stelle
- 914
- Fork
- 472
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di jquery/learn.jquery.com
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
jquery/learn.jquery.com#828 ·
-
Word(s) missing in article?Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. ApertaChapter: events
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
jquery/learn.jquery.com#751 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
jquery/learn.jquery.com#814 · 1 commento ·
-
Chapter: jquery-core help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
jquery/learn.jquery.com#799 ·
-
Chapter: plugins
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
jquery/learn.jquery.com#796 ·
Tutte le issue di jquery/learn.jquery.com
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
good first issue help wanted javascript up-for-grabs
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
andrewsiah/agentswarm-data-tasks#307 ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
coder/claudecode.nvim#588 ·
I maintainer di solito rispondono entro 1 giorno
-
area: web tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
digitalbazaar/http-client#60 ·