码迷,mamicode.com
首页 >  
搜索关键字:mat    ( 14954个结果
CAAnimation——简介
...
分类:其他好文   时间:2017-06-18 17:27:13    阅读次数:113
动画组
可以同时执行多个动画. 创建组动画 CAAnimationGroup *group = [CAAnimationGroup animation]; 平移 CABasicAnimation *anim = [CABasicAnimation animation]; anim.keyPath = @"p ...
分类:其他好文   时间:2017-06-18 17:25:18    阅读次数:170
6.17周六随写
class F { constructor() { // 获取新闻消息 this.newsCb = null; // 用户的回调 this.aNews = []; // 接口数据 this.getNewsTimer = null; ... ...
分类:其他好文   时间:2017-06-18 16:17:54    阅读次数:181
android:Activity启动模式之singleTask(一)
先看一下standard启动模式的说明: 仅仅有一个实例。在同一个应用程序中启动他的时候。若不存在此Activity实例。则会在当前栈顶创建一个新的实例。若存在,则会把栈中在其上的其他Activity实例销毁掉,并调用此实例的OnNewIntent方法,假设实在别的应用实例中启动它。则会新建一个栈, ...
分类:移动开发   时间:2017-06-18 15:51:37    阅读次数:212
js取整函数
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
How to get the MouseEvent coordinates for an element that has CSS3 Transform?
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
[PReact] Handle Simple Routing with preact-router
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
201706180310_《 Javascript (ES6)给变量一个hash串》
(() => { //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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!