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
做了好多年的PHP,一直还停留在应用层的层次水平,貌似是遇到了发展瓶颈。在应用层,实现功能、快速开发、中小型架构、问题的解决方案,这些问题对自己来说已经达到高峰,也就是说,能在小公司负责整体的中小项目很easy。但是,目前自己急缺的是大项目,大架构,底层机制、各种原理、系统知识体系,这些的项目经验与...
分类:
其他好文 时间:
2014-05-01 16:11:22
阅读次数:
330
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
由于cocos2d-js3.0还只有alpha版,加上团队成员都使用lua版,所以又改用lua版了不得不说lua语言实在简单,不了解lua的童鞋完全不必担忧,花一天时间看看lua就差不多了cocos2d-js与cocos2d-lua的
api很接近,由于lua接口文档的和js接口文档的坑爹性,咱还是...
分类:
其他好文 时间:
2014-05-01 16:01:37
阅读次数:
403
function trimStr(str){ return
str.replace(/(^\s*)|(\s*$)/g,"");}用的时候就是直接 var 变量=trimStr(需要去空格的字符串);
分类:
Web程序 时间:
2014-05-01 15:47:26
阅读次数:
347
encodeURI() 函数可把字符串作为 URI
进行编码。--------------------------------------------------------------------------------------------输入:------------------------...
分类:
编程语言 时间:
2014-05-01 15:39:30
阅读次数:
401
function SearchCondition(){ this.startTime = "";
this.endTime = ""; this.targetInfo = ""; this.logType = ""; this.m...
分类:
Web程序 时间:
2014-05-01 15:36:22
阅读次数:
414