开放-关闭原则:是说软件实体(类、模块、函数等等)应该可以扩展,但是不可修改[ASD]。这其实说明了两个特征,一个是“对于扩展是开放的(Open for
extension)”,另一个是“对于更改是封闭的(Closed for modification)”[ASD]。对扩展开放,意味着有新的需求或变...
分类:
其他好文 时间:
2014-05-14 04:15:09
阅读次数:
266
1.Python Extension Packages for Windows - Christoph
Gohlkehttp://www.lfd.uci.edu/~gohlke/pythonlibs/下载Python插件非常方便2.http://pypi.v2ex.com/simple/?allow...
分类:
编程语言 时间:
2014-05-09 19:04:43
阅读次数:
275
1.extension=php_mysql.dll,先加入mysql扩展。2.php.ini中extension_dir必须是绝对路径。3.php文件夹下的libmysql.dll文件复制到C:\Windows\System32文件夹下。4.php.ini复制到C:\Windows文件夹下。
分类:
数据库 时间:
2014-05-09 16:44:06
阅读次数:
436
Sencha removed the refreshFn from the pullrefresh plugin in ST 2.2. Here is an user extension with gives the old
functionality back to you.
/**
* This user extension gives st 2.3.0 Pullrefresh the...
分类:
其他好文 时间:
2014-05-08 16:15:05
阅读次数:
390
有时候,我们希望2个属性中,至少有一个是必填,比如: using
Car.Test.Portal.Extension; namespace Car.Test.Portal.Models { public class
Person { public int Id { get; set; } publi...
分类:
Web程序 时间:
2014-05-07 19:38:45
阅读次数:
518
在2dx3.0中xml解析已经不用自己找库了,已经为我们集成好了。
text.xml
2012050808
crystal
T74
T74
2012050809
goodmao
T77
添加头文件:.h
#include "cocos-ext.h"
#include "tinyxml...
分类:
其他好文 时间:
2014-05-05 13:13:56
阅读次数:
229
.h
#include "cocos-ext.h"
#include "ui/CocosGUI.h"
#include "cocostudio/CocoStudio.h"
USING_NS_CC;
USING_NS_CC_EXT;
using namespace ui;
.cpp
auto background = LayerColor::create(Color4B(200,200...
分类:
其他好文 时间:
2014-05-02 21:27:20
阅读次数:
367
.h
#include "cocos2d.h"
#include "cocos-ext.h"
#include "ui/CocosGUI.h"
#include "cocostudio/CocoStudio.h"
USING_NS_CC;
USING_NS_CC_EXT;
using namespace ui;
private:
cocos2d::SpriteBatchNode *...
分类:
其他好文 时间:
2014-05-02 04:59:30
阅读次数:
332
.h
Text* _displayValueLabel;
void selectedEvent(Ref* pSender,CheckBoxEventType type);
.cpp init()函数
_touchGroup = Layer::create();
addChild(_touchGroup);
Size winSize = ...
分类:
其他好文 时间:
2014-05-01 17:18:48
阅读次数:
453
1、
Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
alert->setColor(Color3B(159, 168, 176));
alert->setPosition(Point(widgetSize.width / 2.0f,...
分类:
其他好文 时间:
2014-04-30 22:23:38
阅读次数:
421