Ext.onReady(function() { Ext.create(‘Ext.container.Viewport‘, { layout : ‘border‘, ?defaults : { ? ? ? ? ? ? autoScroll : true ? ? ? ? }, items : [ {? region : ‘north‘,? html : ‘ <div ...
分类:
Web程序 时间:
2015-04-14 14:49:27
阅读次数:
246
1.Control Panel\All Control Panel Items\Administrative Tools 下找到Server Manager2.打开Server Manager, 在roles里面 右侧 点击 Add Roles3.对 File Services和Web Server...
SegmentedControl又被称作分段控制器,是IOS开发中经常用到的一个UI控件。 初始化方法:传入的数组可以是字符串也可以是UIImage对象的图片数组 - (instancetype)initWithItems:(NSArray *)items; 设置控件风格: ...
分类:
移动开发 时间:
2015-04-13 19:11:22
阅读次数:
152
android IAP unmaneged items 服务器校验当成功IAP以后, 会在google服务器记录此次购买的状态. 可以通过Google Play Android Developer API去请求此状态, 从而完成校验和发给玩家相应的道具.1> 客户端字串,orderId(订单ID),...
分类:
移动开发 时间:
2015-04-13 16:16:51
阅读次数:
272
之前遇到这个奇怪现象,记录一下:使用Listview并设置Adapter时, 会回调多次getView,比如我有4个items,按理说getView应该是调用一次(打出4个log),结果回调有4次(4*4个log)。原因:Listview的layout_height 为自适应:wrap_conten...
分类:
移动开发 时间:
2015-04-13 12:17:07
阅读次数:
149
1、Listview简述A view that shows items in a vertically scrolling list. The items come from theListAdapter associated with this view.简单来说就是,创建Listview,然.....
分类:
其他好文 时间:
2015-04-12 20:45:04
阅读次数:
164
$items、$options都是数组格式
$items是要显示的checkbox array('0'=>'足球', '1'=>'篮球','2'=>'排球')$options是你默认选中的值
array('0'=>1)
field($model, 'chechkbox')->checkboxList($items,$options)->label(false) ?>...
分类:
其他好文 时间:
2015-04-10 22:34:19
阅读次数:
1884
ListBox,CheckBoxList,DropDownList,RadioButtonList的常见用法四个都是选择控件,用法大同小异,基本都是指定键值对:直接加选择项: void way1() { DropDownList1.Items.Add("c#"); DropDownL...
分类:
其他好文 时间:
2015-04-10 19:45:12
阅读次数:
140
def TestDic1():
dict2 ={'aa':222,11:222}
for val in dict2:
print val
def TestDic2():
dict2 ={'aa':222,11:222}
for (key,val) in dict2.items():
print key,":",val
de...
分类:
编程语言 时间:
2015-04-09 17:22:07
阅读次数:
186
1、ComboBox
1)常用属性
FlatStyle : 默认外观
DropDownStyle:下拉样式
MaxDropDOwnItems:列表最大显示多少条
Items:显示内容
sorted:true时排序
2)常用事件
...