一.变量名全部小写,名与名之间用下划线分开。
二.类和模板,每个短语(包括第一个词)开头都大写,不用下划线分割。
三.数据库表名,全部是小写字母,词与词之间用下划线,并且加s变复数
例: LineItem(类名)---------->line_items(数据库表名)
四.line_item.rb文件中,知道类的定义,类名LineItem
五.控制器命名约定,类名为StoreContr...
分类:
其他好文 时间:
2014-07-29 17:46:12
阅读次数:
247
mportosdeffindExtension(path,el):if(os.path.exists(path)):try:items=os.listdir(path)foriteminitems:if(os.path.isfile(os.path.join(path,item))):print(i...
分类:
其他好文 时间:
2014-07-29 11:09:46
阅读次数:
244
//实现IEnumerable接口中的GetEnumerator()方法,为了能支持foreach遍历 class MyClass:IEnumerable { List list = new List(); private List items; public List Items { get { ...
分类:
其他好文 时间:
2014-07-27 23:27:49
阅读次数:
308
标签用于通用数据循环,它有以下属性
属 性
描 述
是否必须
缺省值
items
进行循环的项目
否
无
begin
开始条件
否
0
end
结束条件
否
集合中的最后一个项目
step
步长
否
1
var
代表当前项目的变量名
否
无
varStatus
显示循环状态的变量
...
分类:
其他好文 时间:
2014-07-24 23:20:23
阅读次数:
224
ExtJS 5.0版本官方网站给的图表例子,以散点图作说明:Ext.create('Ext.Container', { //renderTo: Ext.getBody(), width: 600, height: 400, layout: 'fit', items:...
分类:
Web程序 时间:
2014-07-24 22:41:13
阅读次数:
546
1.创建url 链接到form
$items['qianfeng/add'] = array(
'title' => t('添加信息'),
'page callback' => 'drupal_get_form',
'page arguments' => array('qianfeng_add',1),
'file' => 'videocloud_qian...
分类:
其他好文 时间:
2014-07-24 17:46:31
阅读次数:
240
TXMLDocumentdomvendor=ADOMXMLv4varroot:IXMLnode;lei:IXMLNode;info:IXMLNode;i:integer;strxml:string;xmldoc:TXMLDocument;begincbbCountry.Items.Clear;trystrxml:=‘<?xmlversion="1.0"encoding="GB2312"?>‘;strxml:=strxml+(httprio1asDataCenterServicesSoap).Get..
分类:
其他好文 时间:
2014-07-23 21:11:06
阅读次数:
224
The invention teaches managing an item in the Internet of Things, wherein the system comprises: an item registration module, configured to receive at ...
分类:
Web程序 时间:
2014-07-23 11:51:56
阅读次数:
411
回收站机制可有利于防止内容的永久删除与误删除。一、SharePoint 2013 回收站包括两种:第一回收站(End user Recycle Bin items)与 第二回收站(Deleted from end user Recycle Bin)。二、SharePoint 2013回收站配置: ....
分类:
其他好文 时间:
2014-07-23 11:48:26
阅读次数:
250
1.加入项checkedListBox1.Items.Add("蓝色"); checkedListBox1.Items.Add("红色"); checkedListBox1.Items.Add("黄色");2. 推断第i项是否选中,选中为true,否则为falseif(checkedListBox1...
分类:
其他好文 时间:
2014-07-22 23:20:28
阅读次数:
383