普及下常识:GC 是 garbage collector 资源回收器;初期的 Lua GC 采取的是 stop the world 的实现。一旦产生 gc 就需要期待全部 gc 流程走完。lua 自己是个很精简的体系,但不代表处理的数据量也必然很小。从 Lua 5.1 入手下手,GC 的实现改成分步...
分类:
其他好文 时间:
2014-07-27 09:54:52
阅读次数:
262
var form = new Ext.form.FormPanel({ labelAlign : 'right', border : false, bodyStyle : 'background-color: transpar...
分类:
Web程序 时间:
2014-07-27 09:48:22
阅读次数:
291
我们知道在程序运行过程中要创建大量的对象,和其他高级语言类似,在ObjC中对象时存储在堆中的,系统并不会自动释放堆中的内存(注意基本类型是由系统自己管理的,放在栈上)。如果一个对象创建并使用后没有得到及时释放那么就会占用大量内存。其他高级语言如C#、Java都是通过垃圾回收来(GC)解决这个问题的,...
分类:
移动开发 时间:
2014-07-27 09:43:12
阅读次数:
515
Knight Moves
Description
Background
Mr Somurolov, fabulous chess-gamer indeed, asserts that no one else but him can move knights from one position to another so fast. Can you beat him?
The P...
分类:
其他好文 时间:
2014-07-26 17:23:32
阅读次数:
590
#div1 {width:100px;height:100px;background:red;filter:alpha(opacity:30);opacity:0.3}
window.onload=function ()
{
var oDiv=document.getElementById('div1');//先获取div元素
oDiv.onmouseover=function (...
分类:
Web程序 时间:
2014-07-26 02:13:07
阅读次数:
279
MyFloatingBg这插件可以帮助你在网页上加入可移动背景Background。你可以用于整个文件的背景,或是某几个banner的背景。 它可支持简单的animation效果,你不用去做一个flash文件或动态gif图片。单靠jquery和图片,你便可以做出不同的效果。由于我们把动画效果跟内容分...
分类:
移动开发 时间:
2014-07-26 00:53:16
阅读次数:
316
弹出层透明背景加框的常用样式和结构.alertMessageBg{ position:fixed; _position:absolute; width:100%; height:100%; left:0; top:0; background:#000; ...
分类:
其他好文 时间:
2014-07-26 00:40:46
阅读次数:
220
public GameObject _background;public UIAtlas atlas;private Dictionary _allCardSprite;for (int i=0; i(_parent); _sprite.atlas = atlas; ...
分类:
其他好文 时间:
2014-07-25 16:44:51
阅读次数:
293
1、应用程序状态1.1、Not running-未运行程序没有启动1.2、Inactive-未激活程序在前台运行,不过没有接受到事件,在没有事件处理下程序同城停留在这个状态1.3、Active-激活程序在前台运行并且接受到了事件,这也是前台的一个正常的模式1.4、Background-后台程序在后台...
分类:
移动开发 时间:
2014-07-25 16:42:21
阅读次数:
358
.table01_singlar { background-color: #FFFFFF; }.table01_double { background-color: #e5eaf0; }OnRowDataBound="gvData_RowDataBound" protected void gvDat...
分类:
其他好文 时间:
2014-07-25 14:25:11
阅读次数:
199