From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pt-br/glossario/jquery/index.html | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 files/pt-br/glossario/jquery/index.html (limited to 'files/pt-br/glossario/jquery') diff --git a/files/pt-br/glossario/jquery/index.html b/files/pt-br/glossario/jquery/index.html new file mode 100644 index 0000000000..8eb1ccaffb --- /dev/null +++ b/files/pt-br/glossario/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