1.初始化 Initalization 2.state/props更新 3.销毁阶段 Destruction 一、initialization constructor() 构造阶段 componentWillMount() 模块将要安装 render 母鸡(递交) componentDidMount ...
分类:
其他好文 时间:
2018-04-13 13:17:21
阅读次数:
169
M——model :state. V——view:render的用户可见数据。 C——controller: js :1,根据用户操作更新state 。2,把state数据发给view。3,连接服务器接口更新state,或者POST数据,然后接收结果,根据结果做操作。 ...
分类:
Web程序 时间:
2018-04-10 17:45:19
阅读次数:
196
"Paint" is one of the most preference killer, it can easily cost more than 60fps, and once you trigger "Paint" it always trigger "Composite" as well. ...
分类:
Web程序 时间:
2018-04-09 23:11:59
阅读次数:
333
net core 的layout.cshtml文件有变化, 区分开发环境和非开发环境. 开发环境用的是非压缩的js和css, 正式环境用压缩的js和css 对view命名空间的引用,现在则改成了使用_ViewImport.cshtml文件,并且用razor语法来配置。 旧项目是把多语言放在资源文件里 ...
分类:
Web程序 时间:
2018-04-09 15:07:59
阅读次数:
624
onRender: function (grid) { var tip = Ext.create('Ext.tip.ToolTip', { title: 'Detail', minWidth: 800, maxWidth: 800, minHeight: 200, ... ...
分类:
Web程序 时间:
2018-04-08 19:48:21
阅读次数:
234
1 #views 2 3 # ————————02PerfectCRM创建ADMIN页面———————— 4 from django.shortcuts import render 5 6 # ————————04PerfectCRM实现King_admin注册功能———————— 7 # from ...
分类:
其他好文 时间:
2018-04-08 18:20:04
阅读次数:
256
请关注微信公众号:自动化测试实战 今天我们继续模板的知识,现在我们增加字典的复杂度,这个时候在render_template第二个参数可以传**title,以后我们会用**context代替原来的title=title。 相应的我们的index.html文件也要做一些修改,就是将变量处的传参改为具体 ...
分类:
其他好文 时间:
2018-04-04 15:01:32
阅读次数:
134
Unity上平面阴影的计算与实现 参考:https://www.jianshu.com/p/c8438bf6af0f 码字不易,欢迎转载,但保留版权,请于明显处标明出处:http://www.cnblogs.com/beeasy/ ...
分类:
其他好文 时间:
2018-04-03 22:11:25
阅读次数:
172