会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
首页
订阅
管理
1
2
下一页
2014年10月30日
android studio gradle plugin 用户指南 选择性翻译
摘要: 原文http://tools.android.com/tech-docs/new-build-system/user-guide构建文件build.gradleBasic Project1.最简单的配置:apply plugin: 'java'使用自带的java插件,用gradle编译java2.最...
阅读全文
posted @ 2014-10-30 20:43 1987zfp
阅读(10483)
评论(1)
推荐(0)
2014年9月2日
c++ 遍历多维数组的10种方式
摘要: int ia[3][4] = {1,2,3,4,5,6,7,8};//下标for (int i = 0; i < 3; i++){ for (int j = 0; j < 4; j++) { cout << ia[i][j] << endl; }}//指针for (i...
阅读全文
posted @ 2014-09-02 11:39 1987zfp
阅读(7387)
评论(1)
推荐(0)
2014年8月30日
cocos2dx FixedPriority和SceneGraphPriority
摘要: addEventListenerWithSceneGraphPriority1.跟node关联,通过event->getCurrentTarget() 可以获取到node2.如果有两个SceneGraphPriority,node的ZOrder大的先被触发,即如果两个重叠,前面那个先受到触发事件ad...
阅读全文
posted @ 2014-08-30 15:07 1987zfp
阅读(1155)
评论(0)
推荐(0)
cocos2dx 坐标转换
摘要: Point point1 = sprite1->convertToNodeSpace(sprite2->getPosition());绝对坐标转相对坐标newP2 = (p2.x-p1.x, p2.y-p1.y)Point point2 = sprite1->convertToWorldSpace(...
阅读全文
posted @ 2014-08-30 14:53 1987zfp
阅读(270)
评论(0)
推荐(0)
2011年12月14日
mysql生成n位随机数
摘要: select round(round(rand(),15)*1000000000000000);
阅读全文
posted @ 2011-12-14 18:19 1987zfp
阅读(254)
评论(0)
推荐(0)
2011年7月20日
Extjs chart series 超过三个之后的问题。。。。
摘要: 用 Blue theme 的情况下,第四个series没有显示,IE debug报错,用dev版调了下initializeSeries: function(series, idx) {...config.markerStyle = Ext.apply(markerObj, markerThemes[idx % markerThemes.length]);...默认的markerTheme有5个,第三,第四个type似乎忘写了,结果drawSeries: function() {............出错,导致绘制第三个series时出错。theme.base没这个问题。
阅读全文
posted @ 2011-07-20 21:18 1987zfp
阅读(1216)
评论(0)
推荐(0)
2011年6月30日
多个Thread.Timer,唤醒多个Timer
摘要: 多个Timer的使用困扰了很久,今天在解决一个bug的过程中,Timer的使用理了遍。在使用多个timer时,最好用一个类封装下,里面放一个timer,一些处理逻辑。比如这样:然后这么调用:或者lstNa.ForEach(na=>{new NotifyTimer().Dispatch(na)});lstNa可以是一堆需要时间操作的对象。在另一个逻辑里获取。宗旨就是,把timer操作相关的事件捕捉封装到一起,把获取需要timer操作的对象的逻辑封装到一起。这样就不会乱了。
阅读全文
posted @ 2011-06-30 18:14 1987zfp
阅读(1056)
评论(0)
推荐(1)
2011年6月28日
IE下,url地址传给后台,中文参数乱码
摘要: 很简单encodeURI(url)一下就行了firefox不用encodeURI也能识别,估计是自动转码了
阅读全文
posted @ 2011-06-28 10:23 1987zfp
阅读(423)
评论(0)
推荐(0)
2011年6月27日
ie6模拟min-height,后续兼容
摘要: _height=120px;min-height=120px;
阅读全文
posted @ 2011-06-27 23:31 1987zfp
阅读(147)
评论(0)
推荐(0)
IE6奇数个字符乱码解决,js
摘要: 判断如果是奇数个,就加个全角空格if(xxx[length]%2!=0)xxx+=String.fromCharCode(12288);s
阅读全文
posted @ 2011-06-27 23:30 1987zfp
阅读(376)
评论(0)
推荐(0)
1
2
下一页
公告