摘要: 首先先说下正常的 this 指向问题 什么是 this:自动引用正在调用当前方法的.前的对象。 this指向的三种情况 1. obj.fun() fun 中的 this->obj ,自动指向.前的对象 2. new Fun() Fun 中的 this->正在创建的新对象,new 改变了函数内部的 t 阅读全文
posted @ 2019-04-27 18:22 小提莫~ 阅读(14555) 评论(1) 推荐(4) 编辑