可以同时执行多个动画. 创建组动画 CAAnimationGroup *group = [CAAnimationGroup animation]; 平移 CABasicAnimation *anim = [CABasicAnimation animation]; anim.keyPath = @"p ...
分类:
其他好文 时间:
2017-06-18 17:25:18
阅读次数:
170
class F { constructor() { // 获取新闻消息 this.newsCb = null; // 用户的回调 this.aNews = []; // 接口数据 this.getNewsTimer = null; ... ...
分类:
其他好文 时间:
2017-06-18 16:17:54
阅读次数:
181
先看一下standard启动模式的说明: 仅仅有一个实例。在同一个应用程序中启动他的时候。若不存在此Activity实例。则会在当前栈顶创建一个新的实例。若存在,则会把栈中在其上的其他Activity实例销毁掉,并调用此实例的OnNewIntent方法,假设实在别的应用实例中启动它。则会新建一个栈, ...
分类:
移动开发 时间:
2017-06-18 15:51:37
阅读次数:
212
1.丢弃小数部分,保留整数部分 js:parseInt(7/2) 2.向上取整,有小数就整数部分加1 js: Math.ceil(7/2) 3,四舍五入. js: Math.round(7/2) 4,向下取整 js: Math.floor(7/2) ...
分类:
Web程序 时间:
2017-06-18 15:51:06
阅读次数:
156
I want to detect where a MouseEvent has occurred, in coordinates relative to the clicked element. Why? Because I want to add an absolutely positioned ...
分类:
Web程序 时间:
2017-06-18 14:15:34
阅读次数:
272
<style>#div1 {width:100px; height:100px; background:red; position:absolute; left:600px; top:50px;}#div2 {width:1px; height:300px; position:absolute; l ...
分类:
其他好文 时间:
2017-06-18 12:08:59
阅读次数:
154
Some applications only need a very minimal routing solution. This lesson will cover a practical example showing the router in use. We’ll build a simpl ...
分类:
其他好文 时间:
2017-06-18 10:44:52
阅读次数:
147
(() => { //UUID Fn-1 S4 = () => { return (((1+Math.random())*0x10000)|0).toString(16).substring(1); }; //UUID Fn-2 guid = () => { let me = this; retur... ...
分类:
编程语言 时间:
2017-06-18 10:40:36
阅读次数:
122