码迷,mamicode.com
首页 >  
搜索关键字:decorator    ( 926个结果
当Lantent函数碰到BehaviorTree的Abort
UE4中的BehaviorTree(BT),有四种流控制的方式。如下图。每一个选项的作用可以参看链接,本文就不再复制粘贴。讲一个与本文相关的选项,Self,这个选项会一直进行Decorator节点的判断,如果条件不满足,它会立即终止。 而Lantent函数是UE4的蓝图系统中,最接近Unity协程概 ...
分类:其他好文   时间:2017-09-18 22:36:44    阅读次数:781
Python学习之路-装饰器&生成器&正则表达式
装饰器通俗的讲,装饰器就是在不改变源代码基础上,给源代码增加新功能。不改变函数的源代码、调用方式、返回值等,给函数增加新功能。经典案例:登录装饰器,deflogin_decorator(func): definner(): ifUSER_TEMP["status"]==False: print("\033[31;1m用户未登录,请先登录\03..
分类:编程语言   时间:2017-09-18 18:23:56    阅读次数:226
[Vue + TS] Create your own Decorators in Vue with TypeScript
We’ve used @Watch, @Inject and more decorators from vue-property-decorator. In this lesson however we will guide you through creating your own decorat ...
分类:其他好文   时间:2017-09-14 21:55:03    阅读次数:282
[Vue +TS] Use Two-Way Binding in Vue Using @Model Decorator with TypeScript
Vue models, v-model, allow us to use two-way data binding, which is useful in some cases such as forms. This lesson shows how to use it by creating a ...
分类:其他好文   时间:2017-09-13 21:17:45    阅读次数:266
[Vue + TS] Use Properties in Vue Components Using @Prop Decorator with TypeScript
With properties we can follow a one-way parent→child flow communication between components. This lesson shows you how you can pass down properties to ...
分类:其他好文   时间:2017-09-13 18:28:38    阅读次数:287
django5 序列化,CBV
FBV & CBV FBV -> 函数CBV -> 类 - dispatch - get获取/post提交 应用:登录验证 继承: 单继承: # class BaseView(View): # def dispatch(self, request, *args, **kwargs): # if re ...
分类:其他好文   时间:2017-09-12 12:05:59    阅读次数:179
设计模式之装饰模式 Decorator
代码实现 public interface ICar { void move(); } //具体构件角色(真实对象,被装饰角色) class Car implements ICar{ @Override public void move() { System.out.println("陆地上跑"); ...
分类:其他好文   时间:2017-09-04 14:58:22    阅读次数:133
廖雪峰python摘录5
1、假设我们要增强now()函数的功能,比如,在函数调用前后自动打印日志,但又不希望修改now()函数的定义,这种在代码运行期间动态增加功能的方式,称之为“装饰器”(Decorator)。 2、由于log()是一个decorator,返回一个函数,所以,原来的now()函数仍然存在,只是现在同名的n ...
分类:编程语言   时间:2017-09-03 11:06:54    阅读次数:146
jcaptcha配置验证码
准备开始 首先导入jar包:jcaptcha-my-1.0 /** * web 常量 * @author lx * */ public abstract class Constants { /** 用户 session 的 cookie 名称*/ public static final String ...
分类:其他好文   时间:2017-09-01 21:28:49    阅读次数:191
设计模式之装饰器模式
一、百科 概述: 23种设计模式之一,英文叫Decorator Pattern,又叫装饰者模式。装饰模式是在不必改变原类文件和使用继承的情况下,动态地扩展一个对象的功能。它是通过创建一个包装对象,也就是装饰来包裹真实的对象。 特点: (1) 装饰对象和真实对象有相同的接口。这样客户端对象就能以和真实 ...
分类:其他好文   时间:2017-08-31 19:00:56    阅读次数:251
926条   上一页 1 ... 41 42 43 44 45 ... 93 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!