摘要: 一、题目 Given an integer, write a function to determine if it is a power of three. Example 1: Example 2: Example 3: Example 4: Follow up:Could you do it 阅读全文
posted @ 2018-06-21 16:08 peggyhao 阅读(86) 评论(0) 推荐(0) 编辑
摘要: this的重要性不言而喻,比如面试题经常考到,其次,如果彻底理解了this,那么对理解框架源码及编写高质量代码都有很大的帮助。本文就是要深入剖析this的几种情况,理解了原理,以后妈妈再也不用担心你的this了。。 this是动态绑定的,其实相对应的是作用域,因为作用域是在代码刚刚写完的时候,就已经 阅读全文
posted @ 2017-05-19 16:28 peggyhao 阅读(723) 评论(7) 推荐(1) 编辑