1 / 26
文档名称:

More JavaScript.ppt

格式:ppt   大小:67KB   页数:26页
下载后只包含 1 个 PPT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

More JavaScript.ppt

上传人:陈潇睡不醒 2020/8/25 文件大小:67 KB

下载得到文件列表

More JavaScript.ppt

相关文档

文档介绍

文档介绍:ExplorerusesJScript(referredtoinmenusas“ActiveScripting”),whichisMicrosoft’sdialectofJavaScriptOlderbrowsersdon’tsupportsomeofthenewerfeaturesofJavaScriptWewillassumemodernbrowsersupportEnablinganddisablingJavaScript:’tdoToprotectthevisitortoyourwebpages,youcan’t:ReadorwriteuserfilesHowever,JScriptonIEallowsASPscripting,.******@mmwormspreadsToturnoffactivescriptinginOutlookExpress,see http://support./support/kb/articles/Q192/8/,excepttodownloadanotherHTMLpageortosende-mailDeterminewhatothersitestheuserhasvisitedOpenaverysmall(lessthan100pxby100px)windoworanoffscreenwindow(exceptinIE)scapehasmuchbetterdebuggingtoolsthanIEMozillaSelectTools=>WebDevelopment=>scape6:SelectTasks=>Tools=>scape4:municator=>Tools=>scape:Typejavascript:Explorer:GotothePreferences...dialogandlookforsomethinglikeWebcontent=>ShowscriptingerroralertsAfterdebugging,testyourprograminIEIEisthemostpopularbrowser4NumbersInJavaScript,allnumbersarefloatingpointSpecialpredefinednumbers:Infinity,----theresultofdividinganegativenumberbyzeroNaN,(NotaNumber)--theresultofdividing0/0NaNisunequaltoeverything,evenitselfThereisaglobalisNaN()----thesmallest(closesttozero)representablenumber5StringsandcharactersInJavaScript,stringisaprimitivetypeStringsaresurroundedbyeithersinglequotesordoublequotesThereisno“character”typeSpecialcharactersare:\0NUL\bbackspace\fformfeed\nnewline\rcarriagereturn\thorizontaltab\vverticaltab\'singlequote\"doublequote\\backslash\xDDUnicodehexDD\xDDDDUnicodehexDDDD6SomestringmethodscharAt(n)Returnsthenthcharacterofastringconcat(string1,...,stringN)ConcatenatesthestringargumentstotherecipientstringindexOf(substring)Returnsthepositionofthefirstcharacterofsubstringintherecipientstring,or-1ifnotfoundindexOf(substring,start)Returnsthepositionofthefirstcha