javascript 函數(shù) 網(wǎng)頁(yè)js(javascript 函數(shù) 網(wǎng)頁(yè)js)

javascript 函數(shù) 網(wǎng)頁(yè)js(javascript 函數(shù) 網(wǎng)頁(yè)js)

ID:15217581

大?。?2.00 KB

頁(yè)數(shù):28頁(yè)

時(shí)間:2018-08-02

javascript 函數(shù) 網(wǎng)頁(yè)js(javascript 函數(shù) 網(wǎng)頁(yè)js)_第1頁(yè)
javascript 函數(shù) 網(wǎng)頁(yè)js(javascript 函數(shù) 網(wǎng)頁(yè)js)_第2頁(yè)
javascript 函數(shù) 網(wǎng)頁(yè)js(javascript 函數(shù) 網(wǎng)頁(yè)js)_第3頁(yè)
javascript 函數(shù) 網(wǎng)頁(yè)js(javascript 函數(shù) 網(wǎng)頁(yè)js)_第4頁(yè)
javascript 函數(shù) 網(wǎng)頁(yè)js(javascript 函數(shù) 網(wǎng)頁(yè)js)_第5頁(yè)
資源描述:

《javascript 函數(shù) 網(wǎng)頁(yè)js(javascript 函數(shù) 網(wǎng)頁(yè)js)》由會(huì)員上傳分享,免費(fèi)在線(xiàn)閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)

1、javascript函數(shù)網(wǎng)頁(yè)js(javascript函數(shù)網(wǎng)頁(yè)js)Share:JavaScriptfunctionDaquanBaiduspace_applicationplatformMypersonalhomepagefriendsaeoae

2、messagecenter

3、

4、dresssetoutAeoaeArticles,albums,HOHOphotos,PK,sharing,voting,testinggifts,pets,happytribes,carfactories,colorfulfishM

5、oreWebgameAddsettingsSharinghot,sharinglatest,sharingfriends,sharing,sharingandfeedbackGoodcitizensshareandshareJavaScriptfunctionDaquanJavaScriptfunctionscanbedividedintofivecategories:GeneralfunctionArrayfunctionDatefunctionMathematicalfunctionStringfunct

6、ion1.generalfunctionTheJavaScriptroutinefunctionconsistsofthefollowing9functions:(1)alertfunction:displaysawarningdialogbox,includingaOKbutton.(2)confirmfunction:displaysaconfirmationdialog,includingtheOKandCancelbuttons.(3)escapefunction:convertscharacters

7、intoUnicodecodes.(4)Evalfunction:calculatingtheresultofanexpression.(5)isNaNfunction:thetestis(true),no(false)isnotanumber.(6)parseFloatfunction:convertsstringsintocharacternumbers.(7)parseIntfunction:convertsstringsintointegernumbers(whichcanbespecifiedinh

8、exadecimalnumbers).(8)promptfunction:displaysaninputdialogboxthatpromptsforuserinput.Suchas:Script>(9)theunescapefunctiondecodesthecharactersencodedby

9、theescapefunction.2.arrayfunctionTheJavaScriptarrayfunctionconsistsofthefollowing4functions:(1)joinfunction:convertandconnectallelementsinanarraytoastring.Cases:Function,JoinDemo(){VaR,a,b;A=new,Array(0,1,2,3,4);B=a.join("-");//delimiterReturn(b);//returnb=

10、=0-1-2-3-4"}(2)lengthfunction:returnsthelengthofthearray.Cases:Function,LengthDemo(){VaR,a,l;A=new,Array(0,1,2,3,4);L=a.length;Return(L);//l==5}(3)reversefunction:invertthearrayelementsinreverseorder.Cases:Function,ReverseDemo(){VaR,a,l;A=new,Array(0,1,2,3,

11、4);L=a.reverse();Return(L);}(4)sortfunction:reorderthearrayelements.Cases:Function,SortDemo(){VaR,a,l;A=newArray("X","y","Z","D","V","M","R");L=a.sort();Return(L);}3.日期函數(shù)Javascript日期函數(shù)包括以下20個(gè)函數(shù):(1)getd

當(dāng)前文檔最多預(yù)覽五頁(yè),下載文檔查看全文

此文檔下載收益歸作者所有

當(dāng)前文檔最多預(yù)覽五頁(yè),下載文檔查看全文
溫馨提示:
1. 部分包含數(shù)學(xué)公式或PPT動(dòng)畫(huà)的文件,查看預(yù)覽時(shí)可能會(huì)顯示錯(cuò)亂或異常,文件下載后無(wú)此問(wèn)題,請(qǐng)放心下載。
2. 本文檔由用戶(hù)上傳,版權(quán)歸屬用戶(hù),天天文庫(kù)負(fù)責(zé)整理代發(fā)布。如果您對(duì)本文檔版權(quán)有爭(zhēng)議請(qǐng)及時(shí)聯(lián)系客服。
3. 下載前請(qǐng)仔細(xì)閱讀文檔內(nèi)容,確認(rèn)文檔內(nèi)容符合您的需求后進(jìn)行下載,若出現(xiàn)內(nèi)容與標(biāo)題不符可向本站投訴處理。
4. 下載文檔時(shí)可能由于網(wǎng)絡(luò)波動(dòng)等原因無(wú)法下載或下載錯(cuò)誤,付費(fèi)完成后未能成功下載的用戶(hù)請(qǐng)聯(lián)系客服處理。