From 68fc8e96a9629e73469ed457abd955e548ec670c Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 14:49:58 +0100 Subject: unslug pt-br: move --- files/pt-br/glossary/jquery/index.html | 56 ++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 files/pt-br/glossary/jquery/index.html (limited to 'files/pt-br/glossary/jquery') diff --git a/files/pt-br/glossary/jquery/index.html b/files/pt-br/glossary/jquery/index.html new file mode 100644 index 0000000000..8eb1ccaffb --- /dev/null +++ b/files/pt-br/glossary/jquery/index.html @@ -0,0 +1,56 @@ +--- +title: jQuery +slug: Glossario/jQuery +tags: + - Jquery em português +translation_of: Glossary/jQuery +--- +

jQuery é uma {{Glossary("Biblioteca")}} {{Glossary("JavaScript")}} que visa a simplificação na manipulação do {{Glossary("DOM")}} , nas chamadas de {{Glossary("AJAX")}} e no gerenciamento de {{Glossary("Eventos")}} . É muito utilizado por desenvolvedores de Javascript.

+ +

jQuery usa o formato $(seletor).acão() para atribuir um evento a um elemento. Resumindo, $(seletor) chamará jQuery, que selecionará elemento(s) com base no 'seletor' e atribuirá um evento {{Glossary("API")}} chamado .acão().

+ +
$(document).ready(function(){
+  alert("Hello World!");
+  $("#blackBox").hide();
+});
+ +

O codigo acima tem a mesma funcionalidade que o codigo abaixo:

+ +
window.onload = function() {
+  alert( "Hello World!" );
+  document.getElementById("blackBox").style.display = "none";
+};
+ +

Download jQuery

+ + + + + + + + + + + + + + + + +
npmbower (solo file)Google CDN
npm install jquerybower install https://code.jquery.com/jquery-3.2.1.min.jshttps://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
+ +

Veja mais

+ +

General knowledge

+ + + +

Technical information

+ + -- cgit v1.2.3-54-g00ecf