App下載

詞條

大約有 2,000 項(xiàng)符合查詢結(jié)果 ,庫(kù)內(nèi)數(shù)據(jù)總量為 78,250 項(xiàng)。(搜索耗時(shí):0.0029秒)

301.?JavaScript 使用中括號(hào)索引查找字符串中的第N個(gè)字符

```javascript // 舉例 var firstName = "Ada"; var secondLetterOfFirstName = firstName[1]; // Setup var lastName = "Lovelace"; // Only change code below this line. var thirdLetterOfLastName = lastName[2]; ```

http://www.o2fo.com/chun5060/chun5060-yhu524ad.html

302.JavaScript 使用中括號(hào)索引查找字符串中的最后一個(gè)字符

```javascript // 舉例 var firstName = "Ada"; var lastLetterOfFirstName = firstName[firstName.length - 1]; // Setup var lastName = "Lovelace"; // Only change code below this line. var lastLetterOfLastName = lastName[lastName.length - 1]; ```

http://www.o2fo.com/chun5060/chun5060-pgo824ae.html

303.JavaScript 使用中括號(hào)索引查找字符串中的第N個(gè)到最后一個(gè)字符

```javascript // 舉例 var firstName = "Ada"; var thirdToLastLetterOfFirstName = firstName[firstName.length - 3]; // Setup var lastName = "Lovelace"; // Only change code below this line var secondToLastLetterOfLastName = lastName[lastName.length - 2]; ```

http://www.o2fo.com/chun5060/chun5060-183i24af.html

304.Javascript 數(shù)組操作

```javascript // 舉例 var array = ["John", 23]; // Only change code below this line. var myArray = ['GO',1]; ```

http://www.o2fo.com/chun5060/chun5060-8idp24ag.html

305.Javascript 多維數(shù)組操作

```javascript // 舉例 var ourArray = [["the universe", 42], ["everything", 101010]]; // Only change code below this line. var myArray = [["a",1],["b",2]]; ```

http://www.o2fo.com/chun5060/chun5060-7rei24ah.html

306.JavaScript 使用索引查找數(shù)組中的數(shù)據(jù)

```javascript // 舉例 var ourArray = [1,2,3]; var ourData = ourArray[0]; // equals 1 // Setup var myArray = [1,2,3]; // Only change code below this line. var myData = myArray[0]; ```

http://www.o2fo.com/chun5060/chun5060-7vsw24ai.html

307.JavaScript 使用索引修改數(shù)組中的數(shù)據(jù)

```javascript // 舉例 var ourArray = [1,2,3]; ourArray[1] = 3; // ourArray now equals [1,3,3]. // Setup var myArray = [1,2,3]; // Only change code below this line. myArray[0]=3; ```

http://www.o2fo.com/chun5060/chun5060-qkeo24aj.html

308.JavaScript 使用索引操作多維數(shù)組

```javascript // Setup var myArray = [[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]]; // Only change code below this line. var myData = myArray[2][1]; ```

http://www.o2fo.com/chun5060/chun5060-hguc24ak.html

309.JavaScript push()函數(shù)追加數(shù)組數(shù)據(jù)

```javascript // 舉例 var ourArray = ["Stimpson", "J", "cat"]; ourArray.push(["happy", "joy"]); // ourArray now equals ["Stimpson", "J", "cat", ["happy", "joy"]] // Setup var myArray = [["John", 23], ["cat", 2]]; // Only change code below this line. myArray.push(["dog", 3]); ```

http://www.o2fo.com/chun5060/chun5060-69rq24al.html

310.JavaScript pop()函數(shù)彈出數(shù)組最后數(shù)據(jù)

```javascript // 舉例 var ourArray = [1,2,3]; var removedFromOurArray = ourArray.pop(); // removedFromOurArray now equals 3, and ourArray now equals [1,2] // Setup var myArray = [["John", 23], ["cat", 2]]; // Only change code below this line. var removedFromMyArray=myArray.pop(); ```

http://www.o2fo.com/chun5060/chun5060-mzj624am.html

抱歉,暫時(shí)沒(méi)有相關(guān)的微課

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時(shí)沒(méi)有相關(guān)的視頻課程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時(shí)沒(méi)有相關(guān)的教程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

301.?JavaScript 使用中括號(hào)索引查找字符串中的第N個(gè)字符

```javascript // 舉例 var firstName = "Ada"; var secondLetterOfFirstName = firstName[1]; // Setup var lastName = "Lovelace"; // Only change code below this line. var thirdLetterOfLastName = lastName[2]; ```

http://www.o2fo.com/chun5060/chun5060-yhu524ad.html

302.JavaScript 使用中括號(hào)索引查找字符串中的最后一個(gè)字符

```javascript // 舉例 var firstName = "Ada"; var lastLetterOfFirstName = firstName[firstName.length - 1]; // Setup var lastName = "Lovelace"; // Only change code below this line. var lastLetterOfLastName = lastName[lastName.length - 1]; ```

http://www.o2fo.com/chun5060/chun5060-pgo824ae.html

303.JavaScript 使用中括號(hào)索引查找字符串中的第N個(gè)到最后一個(gè)字符

```javascript // 舉例 var firstName = "Ada"; var thirdToLastLetterOfFirstName = firstName[firstName.length - 3]; // Setup var lastName = "Lovelace"; // Only change code below this line var secondToLastLetterOfLastName = lastName[lastName.length - 2]; ```

http://www.o2fo.com/chun5060/chun5060-183i24af.html

304.Javascript 數(shù)組操作

```javascript // 舉例 var array = ["John", 23]; // Only change code below this line. var myArray = ['GO',1]; ```

http://www.o2fo.com/chun5060/chun5060-8idp24ag.html

305.Javascript 多維數(shù)組操作

```javascript // 舉例 var ourArray = [["the universe", 42], ["everything", 101010]]; // Only change code below this line. var myArray = [["a",1],["b",2]]; ```

http://www.o2fo.com/chun5060/chun5060-7rei24ah.html

306.JavaScript 使用索引查找數(shù)組中的數(shù)據(jù)

```javascript // 舉例 var ourArray = [1,2,3]; var ourData = ourArray[0]; // equals 1 // Setup var myArray = [1,2,3]; // Only change code below this line. var myData = myArray[0]; ```

http://www.o2fo.com/chun5060/chun5060-7vsw24ai.html

307.JavaScript 使用索引修改數(shù)組中的數(shù)據(jù)

```javascript // 舉例 var ourArray = [1,2,3]; ourArray[1] = 3; // ourArray now equals [1,3,3]. // Setup var myArray = [1,2,3]; // Only change code below this line. myArray[0]=3; ```

http://www.o2fo.com/chun5060/chun5060-qkeo24aj.html

308.JavaScript 使用索引操作多維數(shù)組

```javascript // Setup var myArray = [[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]]; // Only change code below this line. var myData = myArray[2][1]; ```

http://www.o2fo.com/chun5060/chun5060-hguc24ak.html

309.JavaScript push()函數(shù)追加數(shù)組數(shù)據(jù)

```javascript // 舉例 var ourArray = ["Stimpson", "J", "cat"]; ourArray.push(["happy", "joy"]); // ourArray now equals ["Stimpson", "J", "cat", ["happy", "joy"]] // Setup var myArray = [["John", 23], ["cat", 2]]; // Only change code below this line. myArray.push(["dog", 3]); ```

http://www.o2fo.com/chun5060/chun5060-69rq24al.html

310.JavaScript pop()函數(shù)彈出數(shù)組最后數(shù)據(jù)

```javascript // 舉例 var ourArray = [1,2,3]; var removedFromOurArray = ourArray.pop(); // removedFromOurArray now equals 3, and ourArray now equals [1,2] // Setup var myArray = [["John", 23], ["cat", 2]]; // Only change code below this line. var removedFromMyArray=myArray.pop(); ```

http://www.o2fo.com/chun5060/chun5060-mzj624am.html

抱歉,暫時(shí)沒(méi)有相關(guān)的文章

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

熱門(mén)課程