PraseInt (numString,radix);將字符串轉(zhuǎn)成整形數(shù)字碱茁;
str.length:計(jì)算字符長度润文;
str.toUpperCase():將字符串全部改為大寫十绑;
str.toLowerCase():將字符串改為小寫歪赢;
str.replace():替換字符串;
typeof:判斷字符串類型宜雀;
Boolean():判斷對(duì)應(yīng)的bool類型切平;
時(shí)間函數(shù):
var mydate = new Date();
mydate.getFullYear();
mydate.getMonth();
mydate.getDate();獲得某一天
mydate.getDay();獲得一星期的某一天
mydate.getHours/Minutes/seconds()獲得時(shí)分秒;
Math.:
![3S[9@~)_EC]T%BN)V4373N.png
彈出窗口:
alert();帶一個(gè)確定按鈕的窗口辐董;
prompt();帶輸入框的窗口悴品;
confirm();帶指定信息和確定取消按鈕的窗口;