// SlotMachine var goButton = $("#go_button"); var completed = 0, imgHeight = 776, posA...
分类:
其他好文 时间:
2014-06-23 06:08:15
阅读次数:
314
1.button按钮提交方式//按钮事件$('#btnSumit').click(function() { alert('测试');}); //回车提交事件$("body").keydown(function() { if (event.keyCode == "13") {//keyCo...
分类:
Web程序 时间:
2014-06-23 00:21:49
阅读次数:
16197
最近发现一款和糗百差不多的应用叫,它的底部标签栏的效果不错,于是动手写了下,下面给出具体代码示例.
#pragma mark - 自定义UITabBar
- (void)createCustomTabBarView{
_backGroundImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, ScreenHei...
分类:
其他好文 时间:
2014-06-22 21:18:19
阅读次数:
134
Fragment要点
Fragment作为Activity界面的一部分组成出现
可以在一个Activity中同时出现多个Fragment,并且,一个Fragment亦可在多个Activity中使用。
在Activity运行过程中,可以添加、移除或者替换Fragment(add()、remove()、replace())
Fragment可以响应自己的输入事件,并且有自己的生命周期,当然,它们的生命周期直接被其所属的宿主activity的生命周期影响。
而本文简单介绍主要通过点击不同按钮实现切换对应的frag...
分类:
移动开发 时间:
2014-06-22 20:33:24
阅读次数:
296
设置按钮
点一下ON切换到OFF,点一下OFF切换到ON,实现:
创建菜单按钮
setimage = CCMenuItemImage::create("sound-on-A.png", "sound-off-A.png", this, menu_selector(Game::SetMusic));
setimage->setScale(0.5f);
setimage->setP...
分类:
其他好文 时间:
2014-06-22 19:38:59
阅读次数:
234
1.Scheduler与Timer的关系相当DataManager与Data的关系。
2.Scheduler的两种定时模式,一种是customer selector模式,一种是update 模式。
3.hash表用来存取对应的timer。
4.Scheduler的update函数调用了所有Timer的update。...
分类:
其他好文 时间:
2014-06-22 17:09:20
阅读次数:
251
??
启动Tomcat之后出现全是英文错误:
ORACLE DATABASE 10g EXPRESS EDITION LICENSE AGREEMENT
To use this license, you must agree to all of the following terms (by either clicking the accept button or installing an...
分类:
数据库 时间:
2014-06-22 15:48:26
阅读次数:
608
iOS Dev (54) 键盘弹出后收起时View随之移动
作者:大锐哥博客:http://prevention.iteye.com
-
添加监听
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(c...
分类:
移动开发 时间:
2014-06-22 14:56:07
阅读次数:
222
jquery的给元素绑定的事件可以用data方法取出来
通过$(element).data("events")来获取
// 比如给一个button绑定两个click事件
$("button").click(function() { alert("1") });
$("button").click(function() { alert("2") });
// 这个时候点...
分类:
Web程序 时间:
2014-06-22 00:28:22
阅读次数:
226