要实际精灵的翻转,非常简单,先看实际效果点这里。代码只有区区几行:var sp = this.getWindow().find("ui-status2-general");
var ac1 = {scaleXEnd:0};
var ac2 = {scaleXEnd:1};
sp.animate(ac1, function() {
var fx = sp.getFlipX();
sp....
分类:
Web程序 时间:
2015-06-23 20:05:31
阅读次数:
163
Single Number
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runti...
分类:
其他好文 时间:
2015-06-23 15:37:31
阅读次数:
124
Contains Duplicate IIIGiven an array of integers, find out whether there are two distinct indicesiandjin the array such that the difference betweennum...
分类:
其他好文 时间:
2015-06-23 15:33:56
阅读次数:
81
1、删掉工程中main.storyboard 后要删除plist文件中对应的键值,否则会报如下错误:Could not find a storyboard named 'Main' in bundle NSBundle2、删除main.storyboard后,需要在AppDelegate.m中初始化...
分类:
其他好文 时间:
2015-06-23 15:12:52
阅读次数:
96
Contains Duplicate IIGiven an array of integers and an integerk, find out whether there there are two distinct indicesiandjin the array such thatnums[...
分类:
其他好文 时间:
2015-06-23 15:12:19
阅读次数:
82
插入 insert
MongoDB中文档的数据结构和JSON基本一样。所有存储在集合中的数据都是BSON格式。BSON是一种类json的一种二进制形式的存储格式,简称Binary JSON。
首先我们先选择数据库
> use NewsDB
switched to db NewsDB
>
下面我们先定义一个文档
> document = ({"name":"jingdong","a...
分类:
数据库 时间:
2015-06-23 13:43:12
阅读次数:
376
Maximum Subarray: https://leetcode.com/problems/maximum-subarray/
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [...
分类:
其他好文 时间:
2015-06-23 13:40:52
阅读次数:
145
判断所给的图是不是生成树,如果有重边就不是,如果没重边但连通分量大于1也不是find函数 用之前那个递归的写的话 会无限栈溢出 Orz栈溢出的话 就加上这一串#pragmacomment(linker,"/STACK:1024000000,1024000000")Sample Input6 8 5....
分类:
其他好文 时间:
2015-06-23 13:27:31
阅读次数:
151
题目描述:Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in th...
分类:
其他好文 时间:
2015-06-23 13:10:08
阅读次数:
319
#14 Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings.
这个题求多个字符串的公共前缀,除了要考虑串空外,如果存在公共前缀,那么必定也是第一个串的前缀。
所以可以以第一个串为基准,比较其他串的前缀是否与第一个串相同。
c...
分类:
其他好文 时间:
2015-06-23 11:55:01
阅读次数:
129