Skip to content
This repository has been archived by the owner on May 15, 2022. It is now read-only.

Commit

Permalink
Iniciado Colas JQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarcon83 committed Mar 22, 2021
1 parent 76b1383 commit 21906bd
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
Binary file added _JQuery - Seletores.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions _JQuery.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Sintaxe básica:

$(itemQueProcuramos).funcaoQueChama()
$ // Chama o jQuery;
(itemQueProcuramos) // Seletor estilo CSS;
.funcaoQueChama() // A função

Seletores

("TagName") // seleciona pela tag;
(.className) // seleciona pela tag;
8 changes: 8 additions & 0 deletions _JS - Basicos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,11 @@ Loops
OBS:
break -> Encerra todo o loop
continue -> Encerra uma unica volta do loop

Seletores DOM

document.querySelector("Uma String"); acha a primeira ocorrencia de "Uma String" no DOM e retorna ele;
document.getElementByID("string"); Acha o elemento com a id "string";
document.getElementsByClassName("string"); Acha os elementos com as classes "string";
document.getElementsByTagName("string"); Acha os elementos com as tags "string";
document.getElementsByName("string"); Acha os elementos com a tag name com valor "string";
20 changes: 20 additions & 0 deletions _JS - Objetos.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
declaraçao literal = let nomeObj = {propriedede1: valor, propriedede2: valor, etc}

Iterando

for..in // Caminha pelas chaves de um objeto;
Object.keys(nomeObj)// retorna uma array com as chaves do objeto

Função construtora

function Carro(marca, modelo) {
this.marca = marca;
this.modelo = modelo;
}

Instanciando um novo

let umCarro = new Carro("Ford", "Pampa")



0 comments on commit 21906bd

Please sign in to comment.