摘要:
function Person (){} Person.prototype.name = 'bob'; var p1 = new Person(); var p2 = new Person(); p2.name = '李四'; console.log(p1.name); console.log(p2
阅读全文
posted @ 2017-09-27 16:25
IT猩
阅读(201)
推荐(0)
编辑
摘要:
判断复合(存储在堆中) var a = {name:'op',age:16}; var b= {name:'op',age:16}; alert(a==b);//输入结果为false; 判断基本(存储在栈中) var a =10;var b= 10;alert(a==b);//输入结果为true;
阅读全文
posted @ 2017-09-27 15:54
IT猩
阅读(106)
推荐(0)
编辑