摘要:
传引用和传值的区别和对象切割问题 reference往往以指针的形式实现出来,因此,pass by reference你可以看成是传指针 而pass by value 就会拷贝一份临时的数据或者说对象 对于内置类型 int double 效率上肯定是pass by value效率更高 所以在STL中 阅读全文
摘要:
Inheritance继承 JavaScript使用基于原型的继承。 每个对象都有一个原型,并且当调用该对象的方法时,JavaScript会尝试从原型对象中查找要执行的正确函数。 The prototype attribute Without using the prototype object, 阅读全文
摘要:
Function Context函数下文bind &call Functions in JavaScript run in a specific context, and using the variable we have access to it. 浏览器中的所有标准功能都在Window上下文下 阅读全文
摘要:
Object Oriented JavaScript面向对象 JavaScript uses functions as classes to create objects using the keyword. Here is an example: Creating an object using 阅读全文