2. 完善地图 我们的地图中有空地,墙,钢,草丛,水,总部等障碍物。 我们可以把这些全部设计为对象。2.1 创建障碍物对象群 对象群保存各种地图上的对象,我们通过对象的属性来判断对象是否可以被穿过或被攻击。Barrier.js: 1 // 障碍物基类对象,继承自TankObject 2 Bar...
分类:
编程语言 时间:
2014-11-26 18:45:47
阅读次数:
261
CRM2013中一个很低级很令人无语的BUG,见下图subgrid中的明细条目超过当前页设置的条目后会有翻页,在底下有个paging bar会显示条数、页数、当前所处页数
但sp1版本的CRM打上ur1补丁后,翻到最后一页就会变成这样了,底下的paging bar消失了,是不是感觉很无语。
正常的情况应该是像下面图中显示的这样。
因为我用的是CRM2013的sp1版本,默...
分类:
其他好文 时间:
2014-11-26 16:41:14
阅读次数:
152
再次阅读,发现一些之前忽略掉的内容:1. 关于引用作为参数传递,例如:bar(\@bletch);sub bar{ my @arr = @{shift}}但是这样,shift只是一个变量名称而不是内建函数。如果想要变成内建函数,必须按照下面的方法添加点什么:my @arr = @{shift(...
分类:
其他好文 时间:
2014-11-26 16:08:34
阅读次数:
221
给客户的文档
1 Download the ipa file
2 Drag file to iTunes’s App on the slide menu
if don’t have slide menu on the iTunes, can access the view on the tool bar, andclick “show slide bar”
...
分类:
其他好文 时间:
2014-11-25 23:49:00
阅读次数:
363
利用highcharts的series:{stacking:‘normal‘}进行区分。$(function(){$(‘#container‘).highcharts({chart:{type:‘bar‘},title:{text:‘Stackedbarchart‘},xAxis:{categories:[‘Apples‘,‘Oranges‘,‘Pears‘,‘Grapes‘,‘Bananas‘]},yAxis:{min:0,title:{text:‘Totalfruitconsumption..
分类:
其他好文 时间:
2014-11-25 18:54:11
阅读次数:
808
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
For example,
Given [0,1,0,2,1,0,1,3,2,1,2,1], ...
分类:
移动开发 时间:
2014-11-25 18:42:47
阅读次数:
202
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2014-11-25 18:27:58
阅读次数:
156
目前就能改leftBarButtonItem,rightBarButtonItem一样的颜色,打开plist文件加入View controller-based status bar appearance,将value改为no,在设置你想改的颜色self.navigationController.na...
分类:
其他好文 时间:
2014-11-25 16:10:17
阅读次数:
136
移动前端界面进去的时候,我们会看到地址工具条,这看起来不怎么像一个APP,那么怎么隐藏掉这个地址条,下面提供了一个比较合适的代码,支持IOS和Android./*! Normalized address bar hiding for iOS & Android (c) @scottjehl MIT ...
分类:
移动开发 时间:
2014-11-25 14:22:35
阅读次数:
188