经过前面四个版本的迭代,我们已经制作了一个从视觉和听觉上都很舒服的H5微场景应用,没有看过的请戳下面:V1.0——简单页面滑动切换V2.0——多页切换,透明过渡及交互指示V3.0——加入loading,music及自动切换V4.0——加入文字并给文字加特效但是,还没有完,这一次,我们将做一些十分重要的收尾工作,才能真正完成我们的第一个H5应用,所以,let’s do it!任务
1、加入后悔机...
分类:
其他好文 时间:
2015-06-12 11:41:30
阅读次数:
133
本文记录下JS中产生标示符方式的演变,从ES5到ES6,ES5及其之前是一种方式,只包含两种声明(var/function),ES6则增加了一些产生标识符的关键字,如 let、const、class。一、ES5时代varfunction我们知道 JS 不象其它语言 Java、Ruby等,它用来命名变...
分类:
编程语言 时间:
2015-06-12 07:34:20
阅读次数:
162
普通的数组数据交换, let mut val = [1,2,3]; let t = val[0]; val[0] = val[1]; val[1] = t;it works...下面的也work: let mut val = ["1","2","3"]; let t = val[0]; val[0]...
分类:
其他好文 时间:
2015-06-12 00:51:53
阅读次数:
172
http://blog.chinaunix.net/uid-26827001-id-3154024.html首先看到好多以这样开头的 #!/bin/bash 这个是告诉系统 解释此脚本文件的Shell程序# 这个是注释行,当行有效脚本程序一般用 xx.sh 文件表示,这样一样就可以看出文件的属性,当...
分类:
系统相关 时间:
2015-06-11 16:24:41
阅读次数:
296
3-way partitioning:
将数组分为三份:(小于、等于、大于拆分值)
?Let v be partitioning item a[lo].
?Scan i from left to right.
– (a[i] v): exchange a[gt...
分类:
其他好文 时间:
2015-06-11 13:03:13
阅读次数:
142
Count prime numbers not exceeding n(n>0)Pseudocode:Input: an integer n > 1 Let A be an array of Boolean values, indexed by integers 2 to n,initially a...
分类:
其他好文 时间:
2015-06-11 06:57:38
阅读次数:
81
As you know that sometimes base conversion is a painful task. But still there are interesting facts in bases.For convenience let’s assume that we are dealing with the bases from 2 to 16. The valid symb...
分类:
其他好文 时间:
2015-06-09 21:59:18
阅读次数:
133
1792. Hamming Code
Time limit: 1.0 second
Memory limit: 64 MB
Let us consider four disks intersecting as in the figure. Each of the three shapes formed by the intersectionof three disks will ...
分类:
其他好文 时间:
2015-06-09 21:56:07
阅读次数:
168
添加UIVisualEffectViewby 伍雪颖let bgView : UIImageView = UIImageView(image: UIImage(named: "1.jpg"))
bgView.frame = self.view.bounds
self.view.addSubview(bgView)let blurEffect: UIBlurEffect = UIBlurEffect(...
分类:
其他好文 时间:
2015-06-09 11:49:28
阅读次数:
107
@Ignore 用法很简单, 如果你的测试用例还没有准备好而不想被执行, 又不想删掉或注释掉, 可以使用 @Ignore 标注来忽略测试。方法一旦用 @Ignore 注解了将不会被执行.如果一个类用 @Ignore 注解了 他下面的所有测试方法将不会被执行.Now let's see @Ignore...
分类:
其他好文 时间:
2015-06-09 11:24:43
阅读次数:
150