var:定義變量
if:如果
else:否則
switch:切換
for:循環(huán)
while:當(dāng)...的時候
do:做
break:中斷(終止代碼)
continue:繼續(xù)(跳出當(dāng)前循環(huán))
function:函數(shù),功能
return:返回
number:數(shù)字
float:浮點數(shù)
string:字符串
bool:布爾
boolean:布爾
typeof:類型
null:空,空值
array:數(shù)組
length:長度
concat():連接
join():串聯(lián)(數(shù)組轉(zhuǎn)換成字符串)
pop():彈出(刪除數(shù)組末尾)
push():壓入(在數(shù)組末尾添加)
reverse():反轉(zhuǎn)(用于顛倒數(shù)組中元素的順序)
sort():排序
slice(開始下標(biāo) , 結(jié)束下標(biāo)):切片,劃分
splice():鉸接,粘接(數(shù)組中添加新元素)
charAt(下標(biāo)):獲取某位置字符
indexOf(“關(guān)鍵字”, 下標(biāo)):判斷某字符的首次位置
lastIndexOf():判斷某字符的最后一次位置
replace(/要替換的內(nèi)容/ ig,? ”新值”):替換(i:不區(qū)分大小寫? g:全部替換)
split():分割(字符串轉(zhuǎn)數(shù)組)
substr(開始下標(biāo),截取個數(shù)):截取字符串
substring():截取字符串
toLowerCase():轉(zhuǎn)換為小寫
toUpperCase():轉(zhuǎn)換為大寫
Math . random():隨機
Math . round():取整(默認(rèn)四舍五入)
Math . ceil():向上取整
Math . floor():向下取整
Math . abs():取絕對值
max():最大值
min():最小值
pow():冪運算
sqrt():取開方
new:新建
date:日期
time:時間
year:年
month:月
hour:時
Math .PI : 圓周率
minute:分
second:秒
millisecond:毫秒
status:狀態(tài)
alert():警告
confirm():確認(rèn)
prompt():提示,提示符
open:打開
setInterval(方法名,每隔多少毫秒調(diào)用的時間):設(shè)置反復(fù)性定時器
setTimeout:設(shè)置一次性定時器
clear:清除
close:關(guān)閉
replace:替換
back:后退
go:走
width:
height:高度
appName:程序名
appCodeName:程序代號
appVersion:程序版本
appAgent:程序代理
clientX:
clientY:
srcElement:源對象,事件源
cancel:取消
bubble:冒泡
keyCode:鍵值
this:這個,當(dāng)前
onload:在裝載時
onclick:在點擊時
ondblclick:在雙擊時
onmouseover:在鼠標(biāo)進(jìn)入時
onmouseout:在鼠標(biāo)離開時
onmousemove:在鼠標(biāo)移動時
onmousedown:在鼠標(biāo)按下時
onmouseup:在鼠標(biāo)抬起時
onkeydown:在按鍵按下時
onkeyup在按鍵抬起時
onkeypress:在按鍵時
onsubmit:在提交時
onchange:在改變時
onfocus:在獲得焦點時
onblur:在失去焦點時
document:文檔
write:寫入
getElementById:通過ID獲取對象
getElementsByName
element:元素,對象
option:選項
attribute:屬性
child:孩子,下級
parent:父母,上級
node:節(jié)點
first:第一個
last:最后一個
next:下一個
previous:上一個
create:創(chuàng)建
append:附加