cocos2d-x 3.0 + cocosbuilder
3.0使用中发现每个按钮回调都要写一行对应的回调如:1 local function onMenuItemAClicked()2 ...3 end4 5
TestMenusLayer["onMenuItemAClicked"] = o...
分类:
其他好文 时间:
2014-07-22 23:06:54
阅读次数:
321
$.ajax({type:"get", url:"http://",
data:"name="+userid+"&password="+password,async:true,
error:function(request){alert("Connectionerror"); }, success:...
分类:
Web程序 时间:
2014-07-22 23:06:54
阅读次数:
373
1、setTimeout() setTimeout()
方法用于在指定的毫秒数后调用函数或计算表达式。具体的格式是这样的setTimeout(code,millisec)
其中code是要执行的代码或者function,而millisec是间隔的时间(毫秒数) function empt...
分类:
其他好文 时间:
2014-07-22 23:06:14
阅读次数:
243
标签:例如注意,
此时button的点击事件不会调用jquery中的show(),如果没在js文件中直接书写function show(){}的话,会报错,
提示找不到show()但是在jquery中是可以调用jquery中的 function show() {}的,即可以调用上面的红色书写的sho...
分类:
编程语言 时间:
2014-05-01 16:13:24
阅读次数:
347
Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-05-01 16:06:46
阅读次数:
427
function trimStr(str){ return
str.replace(/(^\s*)|(\s*$)/g,"");}用的时候就是直接 var 变量=trimStr(需要去空格的字符串);
分类:
Web程序 时间:
2014-05-01 15:47:26
阅读次数:
347
function SearchCondition(){ this.startTime = "";
this.endTime = ""; this.targetInfo = ""; this.logType = ""; this.m...
分类:
Web程序 时间:
2014-05-01 15:36:22
阅读次数:
414
类型转换:function ToBoolean: Boolean;function
ToInteger: Integer;function ToSingle: Single;function ToDouble: Double;function
ToExtended: Extended;class f...
分类:
其他好文 时间:
2014-05-01 15:02:01
阅读次数:
382
今天第一次使用了hibernate框架成功的实现想数据库里插入数据,初次使用可能会觉得很麻烦,但是相比较在web开发中使用原始的拼SQL语句的方法,确实方便许多.
使用hibernate,我下载的是hibernate-annotations-3.4.0.GA.zip,hibernate-distr....
分类:
系统相关 时间:
2014-05-01 13:47:47
阅读次数:
689
由于项目中用到了hash,自己实现了一个。Hash = function () { }
Hash.prototype = { constructor: Hash, add: function (k, v) { if (!this.hasO...
分类:
Web程序 时间:
2014-05-01 13:44:25
阅读次数:
444