1 import UIKit 2 3 class ViewController: UIViewController,UITableViewDataSource, UITableViewDelegate 4 { 5 6 @IBOutlet var redView : UIView...
分类:
移动开发 时间:
2014-06-18 08:24:55
阅读次数:
199
magento自己带有导入导出功能
后台system-->import/export-->Advanced Profiles
进入后点击add new profiles
就可以新建一个规则了
Profile Name *是名字
Actions XML *是对应的参数
譬如例子:
file
var/import
...
分类:
其他好文 时间:
2014-06-18 08:01:20
阅读次数:
266
下标脚本就是对一个东西通过索引,快速取值的一种语法,例如数组的a[0]。这就是一个下标脚本。通过索引0来快速取值。在Swift中,我们可以对类(Class)、结构体(structure)和枚举(enumeration)中自己定义下标脚本的语法
一、常规定义
class Student{
var scores:Int[] = Array(count:5,repeatedValue:0)
...
分类:
其他好文 时间:
2014-06-18 07:09:30
阅读次数:
209
关于参数类型,在以前的编程过程中,很多时间都忽视了形参与实参的区别。通过这两天的学习,算是捡回了漏掉的知识。
在swift中,参数有形参和实参之分,形参即只能在函数内部调用的参数,默认是不能修改的,如果想要修改就需要在参数前添加var声明。
但这样的声明过后,仍旧不会改变实参的值,这样就要用到inout了,传递给inout的参数类型必须是var类型的,不能是let类型或者字面类型,(字面类型是...
分类:
其他好文 时间:
2014-06-18 06:55:15
阅读次数:
175
JS+CSS3实现计算器特效
C
7
8
9
+
4
5
6
-
1
2
3
÷
0
.
=
x
// Get all the keys from document
var keys = document.querySelectorAll('#calculator...
分类:
Web程序 时间:
2014-06-18 06:37:23
阅读次数:
271
1.
Python虚拟机会从编译得到的PyCodeObject对象中依次读入每一条字节码指令,
并在当前的上下文环境中执行这条字节码指令。
Python虚拟机实际上是在模拟操作中执行文件的过程
PyCodeObject对象中包含了字节码指令以及程序的所有静态信息,但没有包含
程序运行时的动态信息——执行环境(PyFrameObject)
2.Python源码中的PyFrameObject
typedef struct _frame{
PyObject_VAR_HEAD //"运行时栈"的大小是不确定的...
分类:
编程语言 时间:
2014-06-18 06:33:24
阅读次数:
323
前台:
var provinceStore = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({ url: basePath + "/stationManage/station_getProvinceJSON.action" }),
reader: new Ext.data.JsonReader(...
分类:
数据库 时间:
2014-06-18 00:46:30
阅读次数:
402
JS
var param= new Array();
var one= new Object;
one.id = '1';
one.name= 'simba1';
param.push(one);
var two= new Object;
two.id = '2';
two.name= 'simba2';
param.push(two);
$.ajax({
async :...
分类:
编程语言 时间:
2014-06-18 00:45:17
阅读次数:
505
(4)DoDrawLayout DoDrawLayout函数的源代码分析如下: procedure TTextLayoutNG.DoDrawLayout(const ACanvas: TCanvas);var CharDic: TCharDic; Rec: PCharRec; Pos: TPoint...
分类:
其他好文 时间:
2014-06-18 00:01:49
阅读次数:
284
(4)UpdateCharRec 该函数的源码分析如下: procedure TTextLayoutNG.UpdateCharRec(const ACanvas: TCanvas; NeedBitmap: Boolean; var NewRec: PCharRec; HasItem: Boolean...
分类:
其他好文 时间:
2014-06-17 23:40:36
阅读次数:
373