push :添加一個數(shù)組元素
document :文檔
pop :刪除最后一個數(shù)組元素
console :控制臺
shift :刪除第一個數(shù)組元素
string :字符串
Concat 組合數(shù)組
undefined :未定義
typeof :關鍵字
join:數(shù)組轉化為指定分隔符
slice:返回指定數(shù)組
length:數(shù)組長度
Array:數(shù)組
number:數(shù)字
boolean:布爾
alert:提示框
parseInt:轉化為整型數(shù)值
continue:繼續(xù)
is NaN:非數(shù)字
sort:升序
break:截斷 跳出
reverse:倒序
object:對象類型
parseFloat:轉化為浮點值
index:索引
floor:向下取整
variable:變量
ceil:向上取整
round:四舍五入
abs:返回絕對值
eval:解析字符串并運算
max:比較最大值
return:返回
min:比較最小值
addEventListener:事件名 函數(shù)
to.fixed:保留小數(shù)點
attachEvant:(on)事件名
random:隨機數(shù)
eletment:元素
onclick:鼠標單擊事件
eventName:事件名
ondblclick:鼠標雙擊事件
function:函數(shù)
onselect:內(nèi)容被選中事件
removeEventListener:事件解除
onmouseover:鼠標移入事件
detachEvent:刪除已注冊事件
onmouseout:鼠標移出事件
open():彈出一個新窗口
onfocus:獲得焦點事件
function:函數(shù)(方法)
showModalDialog:彈出一個模式窗口
close():關閉當前窗口
onblur:失去焦點事件
onkeydown:鍵盤按下事件(前)
Date:日期對象
onkeyup:鍵盤松開事件
onkeypress:鍵盤按下事件(后)
getFullYear():年份
getMonth():月份(0--11)
getDate():幾號
getDay():星期幾(周一至周六)
getHours():小時(0--23)
getMinites():分鐘
getSeconds():秒數(shù)(0--59)
getMilliseconds():毫秒數(shù)
getTime():從1970至今的毫秒數(shù)
Date.now():從1970至今的毫秒值
tolocaleDatestring():輸出本地化的日期
setTimeout:延遲時間
tolocaleTimestring():輸出本地化得時間
clearTimeout:定時器對象
tolocalestring:輸出本地化的日期和時間
setInterval:間隔時間
clearInterval:停止
window.status:瀏覽器狀態(tài)欄信息
window.screen:屏幕信息
screen.width:屏幕寬度
screen.height:屏幕高度
screen.availwidth:去掉任務欄寬度
screen.avaiheight:去掉任務欄高度
history:瀏覽歷史記錄
location:地址欄對象
onchange;內(nèi)容改變事件
onkeydown;鍵盤按下事件(前)
onkeyup;鍵盤松開事件
onkeypress;鍵盤按下事件(后)
navigator:用于獲取用戶瀏覽器信息
appCodeName:瀏覽器代碼名的字符串表示
appName:返回瀏覽器的名稱
appVersion:返回瀏覽器的平臺和版本信息
platform:返回運行瀏覽器的操作系統(tǒng)平臺
userAgent:返回由客戶機發(fā)送服務器的
user-agent:頭部的值
Exception:異常 意外情況(try---catch)
onload:當頁面加載完成之后觸發(fā)
獲取元素對象方式:
- getElementByld
- getElementsByName
- gatElementsByTagName
- getElementByClassName