freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

《xml技術(shù)與應(yīng)用》公選課考試要求-文庫吧

2025-07-20 10:13 本頁面


【正文】 屬性和方法并沒有封裝在對象中,而只是被關(guān)聯(lián)在一起.)l JavaScript對象的分類(瀏覽器對象、內(nèi)置對象、服務(wù)器對象與自定義對象)常見的內(nèi)置對象及其使用(String、Math、Date、Array)(Date: Date為動態(tài)對象,只有在實例化后才能使用(靜態(tài)方法除外)。. 0:0:0UTC(Universal time coordinated協(xié)調(diào)世界時)算起的毫秒數(shù),Date對象的取值范圍為108~108天(1天=86,400,000毫秒),相當(dāng)于1970177。273,972年。l 構(gòu)造方法n new Date():構(gòu)造包含當(dāng)前時間的對象。n new Date(milliseconds):構(gòu)造包含指定時間為milliseconds(. 0:0:0算起的毫秒數(shù))的對象n new Date(dateString):構(gòu)造包含指定時間為dateString的對象。u dateString的格式為:月份 日期, 年份[ 時:分:秒]或(因特網(wǎng)GMT約定格式):星期, 日期 月份 年份[ 時:分:秒[ GMT[ 177。hhff時區(qū)]]]其中,括號中的時間可省(全設(shè)為0),沒有寫GMT和時區(qū)的為當(dāng)?shù)貢r間。如:Aug 9, 199Dec 31, 2003 9:4Jan 4, 3004 8Mon, 25 Dec 1995 13:30:00 GMT+0430GTM(Greenwich Mean Time格林尼治標(biāo)準(zhǔn)時間) = UTCn new Date(yr_num, mo_num, day_num[, hr_num, min_num, sec_num, ms_num]):構(gòu)造包含由指定時間為yr_num年mo_num月day_num日[hr_num時min_num分sec_num秒ms_num毫秒]的對象。如:testTime = new Date(2004, 1, 14, 8, 30)。 // 2004年1月14日8時30分l 靜態(tài)方法:(可以不創(chuàng)建實例,直接用Date對象引用)n (dateString):將”年月日時分秒”格式的時間串dateString轉(zhuǎn)換為(. 0:0:0算起的)毫秒數(shù)。n (year, month[, day[, hrs[, min[, sec[, ms]]]]]):將指定時間轉(zhuǎn)換為(. 0:0:0算起的)毫秒數(shù)。l 獲取方法:n getYear():獲得對象時間中相對于1900年的年數(shù)(已是被反對的,應(yīng)該被getFullYear方法代替),例如:Xmas = new Date(December 25, 2000 23:15:00) year = () // returns 100Xmas = new Date(December 25, 1800 23:15:00) year = () // returns 100 n getFullYear():獲得對象時間中的年份,如上兩例分別得2000與1800。n getMonth():獲得對象時間中的月份值1,值范圍:0~11。n getDate():獲得對象時間中的日期,值范圍:1~31。n getDay():獲得對象時間中的星期值,值范圍:0~6,對應(yīng)于Sun~Sat。n getHours():獲得對象時間中的時值,值范圍:0~23。n getMinutes():獲得對象時間中的分值,值范圍:0~59。n getSeconds():獲得對象時間中的秒值,值范圍:0~59。n getMilliseconds():獲得對象時間中的毫秒值,值范圍:0~999。 對應(yīng)于獲得Date對象中當(dāng)?shù)貢r間之完整年~毫秒的方法get*,都有對應(yīng)的獲得世界時之完整年~毫秒的方法getUTC*,如getUTCFullYear()、getUTCSeconds()等。n getTime():獲得對象時間(. 0:0:0算起的毫秒數(shù))。n getTimezoneOffset():獲得對象時間中以分鐘計算的時區(qū)偏移值。 例子:now = new Date()。exam = new Date(Jan 14, 2004)。spring = new Date(Jan 22, 2004)。msPerDay = 24 * 60 * 60 * 1000。examLeft = (() ()) / msPerDay。springLeft = (() ()) / msPerDay。(離考試還剩不到 + (examLeft) + 天時間了!BRBR)。(離春節(jié)還剩不到 + (springLeft) + 天時間了!BR)。l 設(shè)置方法:n setYear(yearValue):yearValue為相對于1900年的年數(shù)(已是被反對的,應(yīng)該被setFullYear方法代替)n setFullYear(yearValue[, monthValue[, dayValue]])n setMonth(monthValue[, dayValue]):monthValue=0~11,若11,則年+月%12。n setDate(dayValue):dayValue=1~31n setHours(hoursValue[, minutesValue[, secondsValue[, msValue]]]):hoursValue=0~23。n setMinutes(minutesValue[, secondsValue[, msValue]]):minutesValue=0~59。n setMilliseconds(millisecondsValue):millisecondsValue=0~999。n setTime(timevalue):. 0:0:0算起的毫秒數(shù)。與獲取方法類似,對應(yīng)于設(shè)置Date對象中當(dāng)?shù)貢r間之完整年~毫秒的方法set*,都有對應(yīng)的設(shè)置世界時之完整年~毫秒的方法setUTC*,如setUTCFullYear、setUTCSeconds等。l 轉(zhuǎn)換方法:n toString():將對象中的時間轉(zhuǎn)換為對應(yīng)的字符串,(),會被JavaScript解釋器在需要將Date對象轉(zhuǎn)換為字符串時自動調(diào)用。格式為星期 月份 日期 時:分:秒 UTC177。hhff時區(qū) 年份 如:Sun Dec 28 12:43:51 UTC+0800 2003n toGMTString():將對象中的時間轉(zhuǎn)換為因特網(wǎng)GMT約定格式的字符串:星期, 日期 月份 年份 時:分:秒 UTC如:Sun, 28 Dec 2003 04:43:51 UTCn toUTCString():將對象中的時間轉(zhuǎn)換為世界時約定格式的字符串,格式同上。n toLocaleString():將對象中的時間轉(zhuǎn)換為當(dāng)?shù)貢r間格式的字符串,具體格式依賴于使用的平臺,如:2003年12月28日 12:43:51 或:12/28/03 12:43:51。n toLocaleDateString():返回將對象中的時間轉(zhuǎn)換為當(dāng)?shù)貢r間格式后的日期字符串,具體格式依賴于使用的平臺,如:2003年12月28日 或:12/28/03。n toLocaleTimeString():返回將對象中的時間轉(zhuǎn)換為當(dāng)?shù)貢r間格式后的時間字符串,具體格式依賴于使用的平臺,如:12:43:51。Array: 長度可伸縮(但元素總數(shù)不超過232 1 = 4,294,967,295)的動態(tài)一維數(shù)組,索引從0開始。同一數(shù)組的元素可為不同數(shù)據(jù)類型,數(shù)組元素本身也可以是另一個數(shù)組(多維數(shù)組)。l 構(gòu)造方法:n new Array([arrayLength])n new Array(element0, element1, ..., elementN) n [element0, element1, ..., elementN] 如:musicTypes = new Array(25)musicTypes[0] = Ramp。BmusicTypes[1] = BluesmusicTypes[2] = Jazz… …musicTypes[50] = 數(shù)來寶 // 會自動加長數(shù)組到51個元素又如:days = new Array(Sun, Mon, Tue, Wed, Thu, Fri, Sat)。 等價于:days = [Sun, Mon, Tue, Wed, Thu, Fri, Sat]。數(shù)組的元素可為不同數(shù)據(jù)類型:myArray = new Array(Hello, myVar, , true)多維數(shù)組:a = new Array(1, 2, new Array(“one”, “two”))。 則a[0] = a[2]=[ “one”, “two”]、a[2][1] = “two”l 例子:HTML HEAD TITLEDigital Clock/TITLE SCRIPT language=JavaScript function dateClock() { days = new Array(Sun, Mon, Tue, Wed, Thu, Fri, Sat)。 monthes = new Array(Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec)。 now = new Date()。 year = ()。 month = ()。 date = ()。 day = ()。 dateStr = monthes[month] + + date + , + year + ( + days[day] + )。 = dateStr。 } function timeClock() { now = new Date()。 hours = ()。 minutes = ()。 seconds = ()。 timeStr = + hours。 timeStr += ((minutes
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1