定时器local sharedScheduler = CCDirector:sharedDirector():getScheduler() --自定义函数 i=1 function prForHimi() -- cocos2d.CCLuaLog("reFresh...
分类:
其他好文 时间:
2014-06-18 22:02:00
阅读次数:
204
local function onTouchBegan(x, y) 层单击事件end local function onTouchMoved(x, y) end local function onTouchEnded(x, y) print("哈哈哈") endlocal function...
分类:
其他好文 时间:
2014-06-18 22:00:39
阅读次数:
235
--滚动条 labar local function valueChanged(strEventName,pSender) if nil == pSender then return end ...
分类:
其他好文 时间:
2014-06-18 22:00:01
阅读次数:
332
Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
分类:
其他好文 时间:
2014-06-18 21:56:47
阅读次数:
209
Given a matrix ofmxnelements (mrows,ncolumns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ],...
分类:
其他好文 时间:
2014-06-18 21:56:06
阅读次数:
215
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].No...
分类:
其他好文 时间:
2014-06-18 17:32:02
阅读次数:
168
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:
其他好文 时间:
2014-06-18 17:25:33
阅读次数:
155
IntroductionRecently our team was working on Veracity Quick Start sprint, when I was trying to migrate the JMS provider implementation from Tibco EMS ...
分类:
其他好文 时间:
2014-06-18 16:16:17
阅读次数:
328
1.对字符串进行hash大家可以看一下, SHA1 HashesGo by Example写道:The pattern for generating a hash is sha1.New(), sha1.Write(bytes), then sha1.Sum([]byte{}). 附上golang代...
分类:
其他好文 时间:
2014-06-18 16:07:48
阅读次数:
294
有重复数据主要有一下几种情况:1.存在两条完全相同的纪录 这是最简单的一种情况,用关键字distinct就可以去掉 example: select distinct * from table(表名) where (条件)2.存在部分字段相同的纪录(有主键id即唯一键) 如果是这种...
分类:
其他好文 时间:
2014-06-18 15:08:18
阅读次数:
173