[关闭]
@yangfch3 2016-05-18T08:09:51.000000Z 字数 17834 阅读 1464

对象属性、方法速查表

JavaScript


window

Properties
applicationCache
caches
closed
controllers
crypto
defaultStatus
devicePixelRatio
dialogArguments
directories
document
frameElement
frames
fullScreen
history
indexedDB
innerHeight
innerWidth
isSecureContext
length
localStorage
location
locationbar
menubar
messageManager
mozAnimationStartTime
mozInnerScreenX
mozInnerScreenY
mozPaintCount
name
navigator
onabort
onafterprint
onbeforeprint
onbeforeunload
onblur
onchange
onclick
onclose
oncontextmenu
ondblclick
ondevicelight
ondevicemotion
ondeviceorientation
ondeviceproximity
ondragdrop
onerror
onfocus
onhashchange
oninput
onkeydown
onkeypress
onkeyup
onlanguagechange
onload
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
onmozbeforepaint
onpaint
onpointercancel
onpointerdown
onpointerenter
onpointerleave
onpointermove
onpointerout
onpointerover
onpointerup
onpopstate
onreset
onresize
onscroll
onselect
onselectstart
onstorage
onsubmit
ontouchcancel
ontouchmove
ontouchstart
onunload
onuserproximity
opener
outerHeight
outerWidth
parent
performance
personalbar
pkcs11
screen
screenX
screenY
scrollbars
scrollMaxX
scrollMaxY
scrollX
scrollY
self
sessionStorage
sidebar
speechSynthesis
status
statusbar
toolbar
top
URL
window
Methods
alert()
atob()
back()
blur()
btoa()
cancelAnimationFrame()
cancelIdleCallback
captureEvents()
clearImmediate()
clearInterval()
clearTimeout()
close()
confirm()
convertPointFromNodeToPage()
createImageBitmap()
dump()
event
fetch()
find()
focus()
forward()
getAttention()
getComputedStyle()
getDefaultComputedStyle()
getSelection()
home()
matchMedia()
minimize()
moveBy()
moveTo()
open()
openDialog()
postMessage()
print()
prompt()
releaseEvents()
requestAnimationFrame()
requestIdleCallback
resizeBy()
resizeTo()
restore()
routeEvent()
scroll()
scrollBy()
scrollByLines()
scrollByPages()
scrollTo()
setCursor()
setImmediate()
setInterval()
setTimeout()
showModalDialog()
sizeToContent()
stop()
updateCommands()

document

Properties
document.activeElement
document.alinkColor
document.anchors
document.applets
document.async
document.bgColor
document.body
document.characterSet
ParentNode.childElementCount
ParentNode.children
document.compatMode
document.contentType
document.currentScript
document.defaultView
document.designMode
document.dir
document.doctype
document.documentElement
document.documentURI
document.documentURIObject
document.domain
document.domConfig
document.embeds
document.fgColor
ParentNode.firstElementChild
document.forms
document.head
document.height
document.images
document.implementation
ParentNode.lastElementChild
document.lastModified
document.lastStyleSheetSet
document.linkColor
document.links
document.location
document.mozFullScreen
document.mozFullScreenElement
document.mozFullScreenEnabled
document.mozSyntheticdocument
GlobalEventHandlers.onabort
document.onafterscriptexecute
document.onbeforescriptexecute
GlobalEventHandlers.onblur
GlobalEventHandlers.onchange
GlobalEventHandlers.onclick
GlobalEventHandlers.onclose
GlobalEventHandlers.oncontextmenu
GlobalEventHandlers.ondblclick
GlobalEventHandlers.onerror
GlobalEventHandlers.onfocus
GlobalEventHandlers.oninput
GlobalEventHandlers.onkeydown
GlobalEventHandlers.onkeypress
GlobalEventHandlers.onkeyup
GlobalEventHandlers.onload
GlobalEventHandlers.onmousedown
GlobalEventHandlers.onmousemove
GlobalEventHandlers.onmouseout
GlobalEventHandlers.onmouseover
GlobalEventHandlers.onmouseup
document.onoffline
document.ononline
GlobalEventHandlers.onpointercancel
GlobalEventHandlers.onpointerdown
GlobalEventHandlers.onpointerenter
GlobalEventHandlers.onpointerleave
GlobalEventHandlers.onpointermove
GlobalEventHandlers.onpointerout
GlobalEventHandlers.onpointerover
GlobalEventHandlers.onpointerup
GlobalEventHandlers.onreset
GlobalEventHandlers.onresize
GlobalEventHandlers.onscroll
GlobalEventHandlers.onselect
document.onselectionchange
GlobalEventHandlers.onselectstart
GlobalEventHandlers.onsubmit
GlobalEventHandlers.ontouchcancel
GlobalEventHandlers.ontouchmove
GlobalEventHandlers.ontouchstart
document.origin
document.plugins
document.pointerLockElement
document.popupNode
document.preferredStyleSheetSet
document.readyState
document.referrer
document.scripts
document.scrollingElement
document.selectedStyleSheetSet
document.styleSheets
document.styleSheetSets
document.title
document.tooltipNode
document.URL
document.vlinkColor
document.width
document.xmlEncoding
document.xmlVersion
Methods
document.adoptNode()
document.caretPositionFromPoint()
document.caretRangeFromPoint()
document.clear()
document.close()
document.createAttribute()
document.createCDATASection()
document.createComment()
document.createdocumentFragment()
document.createElement()
document.createElementNS()
document.createEntityReference()
document.createEvent()
document.createExpression()
document.createNodeIterator()
document.createNSResolver()
document.createProcessingInstruction()
document.createRange()
document.createTextNode()
document.createTouch()
document.createTouchList()
document.createTreeWalker()
document.elementFromPoint()
document.enableStyleSheetsForSet()
document.evaluate()
document.execCommand()
document.exitPointerLock()
document.getBoxObjectFor()
document.getElementById()
document.getElementsByClassName()
document.getElementsByName()
document.getElementsByTagName()
document.getElementsByTagNameNS()
document.getSelection()
document.hasFocus()
document.importNode()
document.loadOverlay()
document.mozCancelFullScreen()
document.mozSetImageElement()
document.open()
document.queryCommandEnabled()
document.queryCommandSupported()
document.querySelector()
document.querySelectorAll()
document.registerElement()
document.releaseCapture()
document.write()
document.writeln()

body

undefinedtext: undefined
link: undefined
vLink: undefined
aLink: undefined
bgColor: undefined
background: undefined
onblur: null
onerror: null
onfocus: null
onload: null
onresize: null
onscroll: null
onbeforeunload: null
onhashchange: null
onlanguagechange: null
onmessage: null
onoffline: null
ononline: null
onpagehide: null
onpageshow: null
onpopstate: null
onstorage: null
onunload: null
title: undefined
lang: undefined
translate: undefined
dir: undefined
dataset: undefined
hidden: undefined
tabIndex: undefined
accessKey: undefined
draggable: undefined
spellcheck: undefined
contentEditable: undefined
isContentEditable: undefined
offsetParent: undefined
offsetTop: undefined
offsetLeft: undefined
offsetWidth: undefined
offsetHeight: undefined
style: undefined
innerText: undefined
outerText: undefined
webkitdropzone: undefined
onabort: null
oncancel: null
oncanplay: null
oncanplaythrough: null
onchange: null
onclick: null
onclose: null
oncontextmenu: null
oncuechange: null
ondblclick: null
ondrag: null
ondragend: null
ondragenter: null
ondragleave: null
ondragover: null
ondragstart: null
ondrop: null
ondurationchange: null
onemptied: null
onended: null
oninput: null
oninvalid: null
onkeydown: null
onkeypress: null
onkeyup: null
onloadeddata: null
onloadedmetadata: null
onloadstart: null
onmousedown: null
onmouseenter: null
onmouseleave: null
onmousemove: null
onmouseout: null
onmouseover: null
onmouseup: null
onmousewheel: null
onpause: null
onplay: null
onplaying: null
onprogress: null
onratechange: null
onreset: null
onseeked: null
onseeking: null
onselect: null
onshow: null
onstalled: null
onsubmit: null
onsuspend: null
ontimeupdate: null
ontoggle: null
onvolumechange: null
onwaiting: null
click: undefined
focus: function () { [native code] }
blur: function () { [native code] }
onautocomplete: null
onautocompleteerror: null
namespaceURI: undefined
prefix: undefined
localName: undefined
tagName: undefined
id: undefined
className: undefined
classList: undefined
attributes: undefined
innerHTML: undefined
outerHTML: undefined
shadowRoot: undefined
scrollTop: undefined
scrollLeft: undefined
scrollWidth: undefined
scrollHeight: undefined
clientTop: undefined
clientLeft: undefined
clientWidth: undefined
clientHeight: undefined
onbeforecopy: undefined
onbeforecut: undefined
onbeforepaste: undefined
oncopy: undefined
oncut: undefined
onpaste: undefined
onsearch: null
onselectstart: undefined
onwheel: null
onwebkitfullscreenchange: undefined
onwebkitfullscreenerror: undefined
previousElementSibling: undefined
nextElementSibling: undefined
children: undefined
firstElementChild: undefined
lastElementChild: undefined
childElementCount: undefined
hasAttributes: undefined
getAttribute: undefined
getAttributeNS: undefined
setAttribute: undefined
setAttributeNS: undefined
removeAttribute: undefined
removeAttributeNS: undefined
hasAttribute: undefined
hasAttributeNS: undefined
getAttributeNode: undefined
getAttributeNodeNS: undefined
setAttributeNode: undefined
setAttributeNodeNS: undefined
removeAttributeNode: undefined
closest: undefined
matches: undefined
getElementsByTagName: undefined
getElementsByTagNameNS: undefined
getElementsByClassName: undefined
insertAdjacentHTML: undefined
createShadowRoot: undefined
getDestinationInsertionPoints: undefined
requestPointerLock: undefined
getClientRects: undefined
getBoundingClientRect: undefined
scrollIntoView: undefined
insertAdjacentElement: undefined
insertAdjacentText: undefined
scrollIntoViewIfNeeded: undefined
webkitMatchesSelector: undefined
animate: undefined
remove: undefined
webkitRequestFullScreen: undefined
webkitRequestFullscreen: undefined
querySelector: undefined
querySelectorAll: undefined
nodeType: undefined
nodeName: undefined
baseURI: undefined
ownerDocument: undefined
parentNode: undefined
parentElement: undefined
childNodes: undefined
firstChild: undefined
lastChild: undefined
previousSibling: undefined
nextSibling: undefined
nodeValue: undefined
textContent: undefined
hasChildNodes: undefined
normalize: undefined
cloneNode: undefined
isEqualNode: undefined
compareDocumentPosition: undefined
contains: undefined
lookupPrefix: undefined
lookupNamespaceURI: undefined
isDefaultNamespace: undefined
insertBefore: undefined
appendChild: undefined
replaceChild: undefined
removeChild: undefined
isSameNode: undefined
ELEMENT_NODE: undefined
ATTRIBUTE_NODE: undefined
TEXT_NODE: undefined
CDATA_SECTION_NODE: undefined
ENTITY_REFERENCE_NODE: undefined
ENTITY_NODE: undefined
PROCESSING_INSTRUCTION_NODE: undefined
COMMENT_NODE: undefined
DOCUMENT_NODE: undefined
DOCUMENT_TYPE_NODE: undefined
DOCUMENT_FRAGMENT_NODE: undefined
NOTATION_NODE: undefined
DOCUMENT_POSITION_DISCONNECTED: undefined
DOCUMENT_POSITION_PRECEDING: undefined
DOCUMENT_POSITION_FOLLOWING: undefined
DOCUMENT_POSITION_CONTAINS: undefined
DOCUMENT_POSITION_CONTAINED_BY: undefined
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: undefined
addEventListener: function addEventListener() { [native code] }
removeEventListener: function removeEventListener() { [native code] }
dispatchEvent: function dispatchEvent() { [native code] }


screen

undefinedavailWidth: undefined
availHeight: undefined
width: undefined
height: undefined
colorDepth: undefined
pixelDepth: undefined
availLeft: undefined
availTop: undefined
orientation: undefined


location

orientation: undefined
replace: undefined
assign: undefined
hash: undefined
search: undefined
pathname: undefined
port: undefined
hostname: undefined
host: undefined
protocol: undefined
origin: undefined
href: undefined
ancestorOrigins: undefined
reload: undefined


undefinedvendorSub: undefined
productSub: undefined
vendor: undefined
maxTouchPoints: undefined
hardwareConcurrency: undefined
appCodeName: undefined
appName: undefined
appVersion: undefined
platform: undefined
product: undefined
userAgent: undefined
language: undefined
languages: undefined
onLine: undefined
cookieEnabled: undefined
getStorageUpdates: undefined
doNotTrack: undefined
geolocation: undefined
plugins: undefined
mimeTypes: undefined
webkitTemporaryStorage: undefined
webkitPersistentStorage: undefined
serviceWorker: undefined
getBattery: undefined
sendBeacon: undefined
getGamepads: undefined
webkitGetUserMedia: undefined
javaEnabled: undefined
vibrate: undefined
requestMIDIAccess: undefined
mediaDevices: undefined
permissions: undefined
presentation: undefined
requestMediaKeySystemAccess: undefined
registerProtocolHandler: undefined
unregisterProtocolHandler: undefined


Object

Properties
Object.prototype
Object.prototype.__count__
Object.prototype.__noSuchMethod__
Object.prototype.__parent__
Object.prototype.__proto__
Object.prototype.constructor
Methods
Object.assign()
Object.create()
Object.defineProperties()
Object.defineProperty()
Object.entries()
Object.freeze()
Object.getNotifier()
Object.getOwnPropertyDescriptor()
Object.getOwnPropertyNames()
Object.getOwnPropertySymbols()
Object.getPrototypeOf()
Object.is()
Object.isExtensible()
Object.isFrozen()
Object.isSealed()
Object.keys()
Object.observe()
Object.preventExtensions()
Object.prototype.__defineGetter__()
Object.prototype.__defineSetter__()
Object.prototype.__lookupGetter__()
Object.prototype.__lookupSetter__()
Object.prototype.eval()
Object.prototype.hasOwnProperty()
Object.prototype.isPrototypeOf()
Object.prototype.propertyIsEnumerable()
Object.prototype.toLocaleString()
Object.prototype.toSource()
Object.prototype.toString()
Object.prototype.unwatch()
Object.prototype.valueOf()
Object.prototype.watch()
Object.seal()
Object.setPrototypeOf()

Function

Properties
Function.arguments
Function.arity
Function.caller
Function.displayName
Function.length
Function.name
Function.prototype
Methods
Function.prototype.apply()
Function.prototype.bind()
Function.prototype.call()
Function.prototype.isGenerator()
Function.prototype.toSource()
Function.prototype.toString()

history

undefinedlength: 0
state: undefined
go: undefined
back: undefined
forward: undefined
pushState: undefined
replaceState: undefined
scrollRestoration: undefined


Array

Properties
Array.prototype
Array.prototype.length
Methods
Array.from()
Array.isArray()
Array.observe()
Array.of()
Array.prototype.concat()
Array.prototype.copyWithin()
Array.prototype.entries()
Array.prototype.every()
Array.prototype.fill()
Array.prototype.filter()
Array.prototype.find()
Array.prototype.findIndex()
Array.prototype.forEach()
Array.prototype.includes()
Array.prototype.indexOf()
Array.prototype.join()
Array.prototype.keys()
Array.prototype.lastIndexOf()
Array.prototype.map()
Array.prototype.pop()
Array.prototype.push()
Array.prototype.reduce()
Array.prototype.reduceRight()
Array.prototype.reverse()
Array.prototype.shift()
Array.prototype.slice()
Array.prototype.some()
Array.prototype.sort()
Array.prototype.splice()
Array.prototype.toLocaleString()
Array.prototype.toSource()
Array.prototype.toString()
Array.prototype.unshift()
Array.prototype.values()
Array.prototype[@@iterator]()
Array.unobserve()

String

Properties
String.length
String.prototype
Methods
String.fromCharCode()
String.fromCodePoint()
String.prototype.anchor()
String.prototype.big()
String.prototype.blink()
String.prototype.bold()
String.prototype.charAt()
String.prototype.charCodeAt()
String.prototype.codePointAt()
String.prototype.concat()
String.prototype.endsWith()
String.prototype.fixed()
String.prototype.fontcolor()
String.prototype.fontsize()
String.prototype.includes()
String.prototype.indexOf()
String.prototype.italics()
String.prototype.lastIndexOf()
String.prototype.link()
String.prototype.localeCompare()
String.prototype.match()
String.prototype.normalize()
String.prototype.quote()
String.prototype.repeat()
String.prototype.replace()
String.prototype.search()
String.prototype.slice()
String.prototype.small()
String.prototype.split()
String.prototype.startsWith()
String.prototype.strike()
String.prototype.sub()
String.prototype.substr()
String.prototype.substring()
String.prototype.sup()
String.prototype.toLocaleLowerCase()
String.prototype.toLocaleUpperCase()
String.prototype.toLowerCase()
String.prototype.toSource()
String.prototype.toString()
String.prototype.toUpperCase()
String.prototype.trim()
String.prototype.trimLeft()
String.prototype.trimRight()
String.prototype.valueOf()
String.prototype@@iterator
String.raw()

Number

Properties
Number.EPSILON
Number.MAX_SAFE_INTEGER
Number.MAX_VALUE
Number.MIN_SAFE_INTEGER
Number.MIN_VALUE
Number.NEGATIVE_INFINITY
Number.NaN
Number.POSITIVE_INFINITY
Number.prototype
Methods
Number.isFinite()
Number.isInteger()
Number.isNaN()
Number.isSafeInteger()
Number.parseFloat()
Number.parseInt()
Number.prototype.toExponential()
Number.prototype.toFixed()
Number.prototype.toLocaleString()
Number.prototype.toPrecision()
Number.prototype.toSource()
Number.prototype.toString()
Number.prototype.valueOf()
Number.toInteger()

Date

Properties
Date.prototype
Methods
Date.UTC()
Date.now()
Date.parse()
Date.prototype.getDate()
Date.prototype.getDay()
Date.prototype.getFullYear()
Date.prototype.getHours()
Date.prototype.getMilliseconds()
Date.prototype.getMinutes()
Date.prototype.getMonth()
Date.prototype.getSeconds()
Date.prototype.getTime()
Date.prototype.getTimezoneOffset()
Date.prototype.getUTCDate()
Date.prototype.getUTCDay()
Date.prototype.getUTCFullYear()
Date.prototype.getUTCHours()
Date.prototype.getUTCMilliseconds()
Date.prototype.getUTCMinutes()
Date.prototype.getUTCMonth()
Date.prototype.getUTCSeconds()
Date.prototype.getYear()
Date.prototype.setDate()
Date.prototype.setFullYear()
Date.prototype.setHours()
Date.prototype.setMilliseconds()
Date.prototype.setMinutes()
Date.prototype.setMonth()
Date.prototype.setSeconds()
Date.prototype.setTime()
Date.prototype.setUTCDate()
Date.prototype.setUTCFullYear()
Date.prototype.setUTCHours()
Date.prototype.setUTCMilliseconds()
Date.prototype.setUTCMinutes()
Date.prototype.setUTCMonth()
Date.prototype.setUTCSeconds()
Date.prototype.setYear()
Date.prototype.toDateString()
Date.prototype.toGMTString()
Date.prototype.toISOString()
Date.prototype.toJSON()
Date.prototype.toLocaleDateString()
Date.prototype.toLocaleFormat()
Date.prototype.toLocaleString()
Date.prototype.toLocaleTimeString()
Date.prototype.toSource()
Date.prototype.toString()
Date.prototype.toTimeString()
Date.prototype.toUTCString()
Date.prototype.valueOf()
Date.prototype[@@toPrimitive]

Math

Properties
Math.E
Math.LN10
Math.LN2
Math.LOG10E
Math.LOG2E
Math.PI
Math.SQRT1_2
Math.SQRT2
Methods
Math.abs()
Math.acos()
Math.acosh()
Math.asin()
Math.asinh()
Math.atan()
Math.atan2()
Math.atanh()
Math.cbrt()
Math.ceil()
Math.clz32()
Math.cos()
Math.cosh()
Math.exp()
Math.expm1()
Math.floor()
Math.fround()
Math.hypot()
Math.imul()
Math.log()
Math.log10()
Math.log1p()
Math.log2()
Math.max()
Math.min()
Math.pow()
Math.random()
Math.round()
Math.sign()
Math.sin()
Math.sinh()
Math.sqrt()
Math.tan()
Math.tanh()
Math.trunc()

RegExp

Properties
RegExp.9
RegExp.input ($_)
RegExp.lastIndex
RegExp.lastMatch ($&)
RegExp.lastParen ($+)
RegExp.leftContext ($`)
RegExp.prototype
RegExp.prototype.flags
RegExp.prototype.global
RegExp.prototype.ignoreCase
RegExp.prototype.multiline
RegExp.prototype.source
RegExp.prototype.sticky
RegExp.prototype.unicode
RegExp.rightContext ($')
Methods
RegExp.prototype.compile()
RegExp.prototype.exec()
RegExp.prototype.test()
RegExp.prototype.toSource()
RegExp.prototype.toString()
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注