After following, you can keep track of his dynamic information in a timely manner
Courses in the relevant section:HTML5 new form elements
datalist 元素 規(guī)定輸入域的選項(xiàng)列表 keygen 元素 提供一種驗(yàn)證用戶的可靠方法 output 元素 用于不同類型的輸出
2016-11-250個(gè)贊
Courses in the relevant section:switch branch statement in JavaScript
switch、case、break、default都是系統(tǒng)關(guān)鍵字,都必須全小寫。 switch后的小括號(hào)():小括號(hào)內(nèi)一般是一個(gè)變量名,這個(gè)變量可能會(huì)有不同的取值。 每個(gè)case的值,與變量的值進(jìn)行比對(duì),如果一致就執(zhí)行該case后的代碼。 所有的case都是“或”的關(guān)系,每時(shí)每刻只有一個(gè)case會(huì)滿足條件。 每個(gè)case中的代碼執(zhí)行完畢后,必須要用break語句結(jié)束,結(jié)束之后,程序?qū)⑻絪witch結(jié)束大括號(hào)之后運(yùn)行。 如果不寫break語句的話,下面所有的case語句都會(huì)執(zhí)行一遍。
2016-11-240個(gè)贊
Courses in the relevant section:HTML5 new form attributes
<form> / <input> autocomplete 屬性規(guī)定 form 或 input 域應(yīng)該擁有自動(dòng)完成功能。 <input> autofocus 屬性 在頁面加載時(shí),域自動(dòng)地獲得焦點(diǎn)
2016-11-250個(gè)贊
Courses in the relevant section:while loop in JavaScript
while(條件判斷){ 如果條件為true,則執(zhí)行循環(huán)體代碼 }
2016-11-240個(gè)贊
Courses in the relevant section:HTML5 semantic elements
語義元素就是為元素(標(biāo)簽)賦予某種意義,元素的名稱就是元素要表達(dá)的意思 特點(diǎn):易于維護(hù),無障礙性,利于搜索引擎優(yōu)化。
2016-11-250個(gè)贊
Courses in the relevant section:for loop in JavaScript
for(變量初始化 ; 條件判斷 ; 變量更新){ 循環(huán)體代碼; }
2016-11-240個(gè)贊
Courses in the relevant section:The difference between break and continue in JavaScript
描述:break語句,用于無條件結(jié)束各種循環(huán)(退出循環(huán))和switch。 說明:一般情況下,需要在break語句之前加一個(gè)條件判斷。換句話說:就是條件成立了,就退出循環(huán)。
2016-11-240個(gè)贊
Courses in the relevant section:HTML5 web storage
保存數(shù)據(jù):localStorage.setItem( key, value ); sessionStorage.setItem( key, value ); 讀取數(shù)據(jù):localStorage.getItem( key ); sessionStorage.getItem( key ); 刪除單個(gè)數(shù)據(jù):localStorage.removeItem( key ); sessionStorage.removeItem( key ); 刪除所有數(shù)據(jù):localStorage.clear( ); sessionStorage.clear( );
2016-11-250個(gè)贊
Courses in the relevant section:Basic knowledge of JavaScript arrays
數(shù)組中有多個(gè)值,每個(gè)值都有一個(gè)“編號(hào)”,通過“編號(hào)”可以訪問到數(shù)組中的每個(gè)值。 數(shù)組中的“編號(hào)”又稱“下標(biāo)”或“索引號(hào)”。 數(shù)組中的“下標(biāo)號(hào)”是從0開始的正整數(shù)。也就是說:第1個(gè)數(shù)組元素下標(biāo)為0,第2個(gè)數(shù)組元素下標(biāo)為1,第3個(gè)數(shù)組元素下標(biāo)為2,依次類。 第1個(gè)數(shù)組元素的下標(biāo)一定是0,最后一個(gè)數(shù)組元素的下標(biāo)是:長(zhǎng)度-1。 使用數(shù)組的目的,就是使用循環(huán)遍歷數(shù)組很方便。
2016-11-240個(gè)贊
Courses in the relevant section:HTML5 Web SQL database
db.transaction(function (tx) { tx.executeSql('UPDATE LOGS SET log=\'www.w3cschool.cc\' WHERE id=2'); });
2016-11-250個(gè)贊
Courses in the relevant section:Creation and manipulation of arrays in JavaScript
數(shù)組元素的值,可以是任何類型。如:字符型、數(shù)值型、布爾型、數(shù)組型、對(duì)象型、函數(shù)。
2016-11-240個(gè)贊
Courses in the relevant section:HTML5 application caching
應(yīng)用程序緩存技術(shù) Application Cache 離線瀏覽 提升頁面載入速度 降低服務(wù)器壓力
2016-11-250個(gè)贊
Courses in the relevant section:JavaScript array object property length and two-dimensional array
var arr = [ [1,2,3,4], [4,5,6,7], [8,9,10,11] ];
2016-11-240個(gè)贊
Courses in the relevant section:HTML5 Web Workers
var i=0; function timedCount(){ i=i+1; postMessage(i); setTimeout("timedCount()",500); } timedCount();
2016-11-250個(gè)贊
Courses in the relevant section:JavaScript function preliminary
函數(shù),是將一段公共的代碼進(jìn)行封裝,給它起個(gè)名字叫“函數(shù)”。 函數(shù)可以一次定義,多次調(diào)用。 函數(shù),可以將常用的功能代碼,進(jìn)行封裝。如:用戶名的驗(yàn)證、驗(yàn)證碼函數(shù)、郵箱驗(yàn)證、手機(jī)號(hào)碼驗(yàn)證
2016-11-240個(gè)贊