2017年4月12日
摘要: 前端代码 js代码 mounted:function() { this.$nextTick(function(){ this.renderView(); if(this.bannerData.length>0){ this.active(); } }) }, methods:{ /** * 用户登录 阅读全文
posted @ 2017-04-12 16:08 FantasyBoy 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 使用self::或者_class_对当前类的静态引用,取决于当前类,指的是当前类. static和this很像,不再是指代当前类,在运行时,指代的运行的那个类,而static还可以用于静态方法和属性,这种方式又叫后期静态绑定 看个例子: 子类son,callstatic()函数调用的是自己name方 阅读全文
posted @ 2017-04-12 14:00 FantasyBoy 阅读(155) 评论(0) 推荐(0) 编辑