self 和[self class]的区别
https://stackoverflow.com/questions/25376303/difference-between-self-and-self-class-in-category
// self 代表的是当前类的对象可以用来调用实例方法,不能用来调用类方法,而[self class]和[WTRouterManager class]代表的是类对象,可以用来调用类方法,不能调用实例方法
本文地址
https://stackoverflow.com/questions/25376303/difference-between-self-and-self-class-in-category
// self 代表的是当前类的对象可以用来调用实例方法,不能用来调用类方法,而[self class]和[WTRouterManager class]代表的是类对象,可以用来调用类方法,不能调用实例方法
本文地址
评论 · 0
还没有评论。