摘要: 在控制台输入 new Set([.../document.querySelectorAll('*')].map(v => v.tagName)); new Set(Array.from(document.querySelectorAll('*')).map(v => v.tagName)); 阅读全文
posted @ 2016-12-08 20:08 文道诗洋 阅读(926) 评论(0) 推荐(0) 编辑
摘要: Document 阅读全文
posted @ 2016-12-02 09:10 文道诗洋 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Document 面向对象 一切皆为对象 对象是类的一个实例,对象有属性和方法,对象表示属性的无序集合 声明对象 var person = { name: "张三", age: 20 } 2.构造函数创建... 阅读全文
posted @ 2016-11-30 20:56 文道诗洋 阅读(1079) 评论(0) 推荐(0) 编辑
摘要: 区别: 第一个参数后面的参数: call传参是一个一个传: apply传参是封装成一个数组: bind传参的方式与call一样,但是bind方法返回的任然是一个函数 需要在函数外加一个括号来调用 阅读全文
posted @ 2016-11-30 20:34 文道诗洋 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Document 阅读全文
posted @ 2016-11-26 17:07 文道诗洋 阅读(97) 评论(0) 推荐(0) 编辑
摘要: Document jS jQuery PHP jSjQueryPHp --> 阅读全文
posted @ 2016-11-26 17:00 文道诗洋 阅读(152) 评论(0) 推荐(0) 编辑