11 2016 档案

摘要:一、数组遍历 1.原生js方法 2.forEach/map 3.for...of ES6新增功能 4.for…in for…in主要是为遍历对象而设计的,不适用于遍历数组。 遍历数组时的缺点: 1. 数组的键名是数字,但是for…in循环是以字符串作为键名“0”、“1”、“2”等等。 2. for… 阅读全文
posted @ 2016-11-11 15:29 objJs 阅读(7696) 评论(0) 推荐(0)
摘要:已下为刮刮乐源码,转载请表明出处<!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable 阅读全文
posted @ 2016-11-04 15:50 objJs 阅读(1707) 评论(0) 推荐(0)