摘要: In the game of life, if it often seems like you’re on the losing end of things, you’re not alone. Life can be one giant conundrum filled with ups and 阅读全文
posted @ 2016-12-01 09:54 dazzlinglight 阅读(642) 评论(0) 推荐(0) 编辑
摘要: 21、如何判断一个对象是否属于某个类? 使用instanceof if(a instanceof Person){ alert('yes'); } 22、new操作符具体干了什么呢? (1)创建一个空对象,并且 this 变量引用该对象,同时还继承了该函数的原型。 (2)属性和方法被加入到 this 阅读全文
posted @ 2016-12-01 09:52 dazzlinglight 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1、介绍js的基本数据类型。 Undefined、Null、Boolean、Number、String、 ECMAScript 2015 新增:Symbol(创建后独一无二且不可变的数据类型 ) 2、介绍js有哪些内置对象? Object 是 JavaScript 中所有对象的父对象 数据封装类对象 阅读全文
posted @ 2016-12-01 09:49 dazzlinglight 阅读(746) 评论(0) 推荐(0) 编辑