
Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Prepare-se para as provas
Estude fácil! Tem muito documento disponível na Docsity
Prepare-se para as provas com trabalhos de outros alunos como você, aqui na Docsity
Encontra documentos específicos para os exames da tua universidade
Prepare-se com as videoaulas e exercícios resolvidos criados a partir da grade da sua Universidade
Responda perguntas de provas passadas e avalie sua preparação.
Ganhe pontos para baixar
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
cheat sheet
Tipologia: Notas de estudo
1 / 1
Esta página não é visível na pré-visualização
Não perca as partes importantes!

Object toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable
String charAt charCodeAt fromCharCode concat indexOf lastIndexOf localeCompare match replace search slice split substring substr toLowerCase toUpperCase toLocaleLowerCase toLocaleUpperCase
RegEx test match exec
Array concat join push pop reverse shift slice sort splice unshift
Number toFixed toExponential toPrecision
Date parse toDateString toTimeString getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getYear setDate setHours setMilliseconds setMinutes setMonth setSeconds setYear toLocaleTimeString
A method is a type of function, associated with an object. A normal function is not associated with an object.
/g /i /s /m
Global matching Case insensitive Single line mode Multi line mode
onAbort onBlur onChange onClick onDblClick onDragDrop onError onFocus onKeyDown onKeyPress onKeyUp onLoad
onMouseDown onMouseMove onMouseOut onMouseOver onMouseUp onMove onReset onResize onSelect onSubmit onUnload
Document clear createDocument createDocumentFragment createElement createEvent createEventObject createRange createTextNode getElementsByTagName getElementById write
Node addEventListener appendChild attachEvent cloneNode createTextRange detachEvent dispatchEvent fireEvent getAttributeNS getAttributeNode hasChildNodes hasAttribute hasAttributes insertBefore removeChild removeEventListener replaceChild scrollIntoView
Form submit
DOM Collections item
Range collapse createContextualFragment moveEnd moveStart parentElement select setStartBefore
Style getPropertyValue setProperty
Event initEvent preventDefault stopPropagation
XMLSerializer serializeToString
XMLHTTP open send
XMLDOM loadXML
DOMParser parseFromString
Regular expressions in JavaScript take the form:
(a|b) (...) [abc] [^abc] a? a* a+ a{3} a{3,} a{3,6} !(pattern)
Start of string End of string Any single character a or b Group section Item in range (a or b or c) Not in range (not a or b or c) Zero or one of a Zero or more of a One or more of a Exactly 3 of a 3 or more of a Between 3 and 6 of a "Not" prefix. Apply rule when URL does not match pattern.
Built In eval parseInt parseFloat isNaN isFinite decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape
Window alert blur clearTimeout close focus open print setTimeout
External JavaScript File
Inline JavaScript
Available free from AddedBytes.com
XMLHttpRequest
Safari, Mozilla, Opera: var req = new XMLHttpRequest(); Internet Explorer: var req = new ActiveXObject("Microsoft.XMLHTTP");
XMLHttpRequest readyState Values
Uninitiated Loading Loaded Interactive Complete
XMLHttpRequest Object Methods
abort() getAllResponseHeaders() getResponseHeader(header) open(method, URL) send(body) setRequestHeader(header, value)
XMLHttpRequest Object Properties
onreadystatechange readyState responseText responseXML status statusText