標籤:隨機 數值 延遲 concat boolean log -- ring min
push :添加一個數組元素
document :文檔
pop :刪除最後一個數組元素
console :控制台
shift :刪除第一個數組元素
string :字串
Concat 組合數組
undefined :未定義
typeof :關鍵字
join:數組轉化為指定分隔字元
slice:返回指定數組
length:數組長度
Array:數組
number:數字
boolean:布爾
alert:提示框
parseInt:轉化為整型數值
continue:繼續
is NaN:非數字
sort:升序
break:截斷 跳出
reverse:倒序
object:物件類型
parseFloat:轉化為浮點值
index:索引
floor:向下取整
variable:變數
ceil:向上取整
round:四捨五入
abs:返回絕對值
eval:解析字串並運算
max:比較最大值
return:返回
min:比較最小值
addEventListener:事件名 函數
to.fixed:保留小數點
attachEvant:(on)事件名
random:隨機數
eletment:元素
onclick:按一下滑鼠事件
eventName:事件名
ondblclick:滑鼠雙擊事件
function:函數
onselect:內容被選中事件
removeEventListener:事件解除
onmouseover:滑鼠移入事件
detachEvent:刪除登入事件
onmouseout:滑鼠移出事件
open():彈出一個新視窗
onfocus:獲得焦時間點事件
function:函數(方法)
showModalDialog:彈出一個強制回應視窗
close():關閉當前視窗
onblur:失去焦時間點事件
onkeydown:鍵盤按下事件(前)
Date:日期對象
onkeyup:鍵盤鬆開事件
onkeypress:鍵盤按下事件(後)
getFullYear():年份
getMonth():月份(0--11)
getDate():幾號
getDay():星期幾(周一至周六)
getHours():小時(0--23)
getMinites():分鐘
getSeconds():秒數(0--59)
getMilliseconds():毫秒數
getTime():從1970至今的毫秒數
Date.now():從1970至今的毫秒值
tolocaleDatestring():輸出本地化的日期
setTimeout:延遲時間
tolocaleTimestring():輸出本地化得時間
clearTimeout:定時器對象
tolocalestring:輸出本地化的日期和時間
setInterval:間隔時間
clearInterval:停止
JS常用單詞