第六章
面向对象的程序设计ECMA中有两种属性:数据属性和访问器属性数据属性的特性[[Configurable]]
表示是否通过delete删除属性,是否重新定义属性,是否能把属性修改为访问器属性[[Enumerable]]
表示是否通过for-in循环返回属性[[writable]] 表示是...
分类:
编程语言 时间:
2014-05-10 00:06:22
阅读次数:
283
#include
#include
#include
#ifndef VIRTUAL
#define VIRTUAL
#endif
#ifndef DELETE
#define DELETE(X) do { free(X);X = NULL; } while(0)
#endif
#define NEW(TYPE,pInstance,SUBTYPE) struct TYPE* pInst...
分类:
编程语言 时间:
2014-05-09 22:29:48
阅读次数:
455
转载地址:http://www.2cto.com/database/201212/176781.html触发器是MySQL响应以下任意语句而自动执行的一条MySQL语句(或位于BEGIN和END语句之间的一组语句):
www.2cto.com DELETE; INSERT; ...
分类:
数据库 时间:
2014-05-09 19:41:03
阅读次数:
441
CDC 应该是成对使用 GetDC and ReleaseDC(不用new and delete)泄露
分类:
其他好文 时间:
2014-05-09 15:51:28
阅读次数:
222
在android中,listview一般都是通过一个adapter来绑定数据,一般的item的点击事件都会指向同一个目标(intent),只是所带的参数不同而已,但有的时候事与愿违,每个item的目标(intent)是不同的,此时我们需要一点技巧来处理这种情况。。。我的做法是每个item对应的entity添加一个listener ,来监听自己的事件。。上代码:
Listitem的定义[包含...
分类:
其他好文 时间:
2014-05-09 14:52:48
阅读次数:
290
转载地址:http://blog.csdn.net/dengshengjin2234/article/details/85020971、适配器模式:ListView或GridView的Adapter简介:不同的数据提供者使用一个适配器来向一个相同的客户提供服务。2、建造者模式:AlertDialog...
分类:
移动开发 时间:
2014-05-09 13:45:12
阅读次数:
373
前言
话说开发用了各种Adapter之后感觉用的最舒服的还是BaseAdapter,尽管使用起来比其他适配器有些麻烦,但是使用它却能实现很多自己喜欢的列表布局,比如ListView、GridView、Gallery、Spinner等等。它是直接继承自接口类Adapter的,使用Base...
分类:
移动开发 时间:
2014-05-09 08:47:35
阅读次数:
523
void fun(char *str){ char *a = new
char[strlen(str)+1]; memcpy(a, str, strlen(str)+1); if (...) { return; } else if
(...) {return; } delete a; return;...
分类:
其他好文 时间:
2014-05-09 07:35:24
阅读次数:
257
Bluetooth
Using the Bluetooth APIs, an Android application can perform the following:
使用蓝牙APIs,一个Android应用可以进行如下操作:
Scan for other Bluetooth devices
扫描其他蓝牙设备
Query the local Bluetooth adapter...
分类:
移动开发 时间:
2014-05-09 06:15:57
阅读次数:
479
这几个月正式开始运用ExtJS开发项目,接下来会将这几个月的一些经验整理成一个系列博客。今天要讲的是ExtJS中的基础,如何获取component和Dom.element。一、query查询以下的path为查询条件,查询方式类似于JQuery*ComponentQuery返回componentExt.ComponentQuery.query(path)全..
分类:
Web程序 时间:
2014-05-09 00:44:37
阅读次数:
413