码迷,mamicode.com
首页 >  
搜索关键字:Sublime Text    ( 54572个结果
如果AlertView输入框为空,则禁止点击确定按钮
//UIAlertView的代理方法(创建UIAlertView之后,copy此代理方法即可)- (BOOL)alertViewShouldEnableFirstOtherButton:(UIAlertView *)alertView{ //1.取出输入框中的文字 NSString *text .....
分类:其他好文   时间:2014-07-22 23:00:34    阅读次数:330
设计模式——工厂方法
目的定义创建对象的方法/接口,然后让子类来决定创建具体的类的对象。通过不同的类,使得实例化延迟至子类。特点必须引入继承,才能算是工厂方法模式。Found in JDK APIjava.util.Calendar#getInstance()java.text.NumberFormat#getInsta...
分类:其他好文   时间:2014-07-22 23:00:16    阅读次数:282
C#简单工厂模式(文件案例)
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 读文件案例{ cla...
分类:其他好文   时间:2014-07-22 22:59:55    阅读次数:241
简单版猜拳游戏
界面很简单//玩家类using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 猜拳游戏{ /// //...
分类:其他好文   时间:2014-05-02 12:04:15    阅读次数:292
HTML中META属性详解 转载自 hero_213的博客
HTML中META属性详解meta是html语言head区的一个辅助性标签。几乎所有的网页里,我们可以看到类似下面这段的html代码: <head> <meta http-equiv= "content-Type " content= "text/html; charset=gb2312 ">...
分类:Web程序   时间:2014-05-02 12:02:03    阅读次数:314
C++ 控制台代码输出控制
在C++控制台应用程序中可以控制控制台输出的字体颜色和 接受任意按键退出#ifndef CONSOLE_UTILS_H#define CONSOLE_UTILS_H#include #include #include //default text colors can be found in win...
分类:编程语言   时间:2014-05-02 00:23:19    阅读次数:450
JS中模板嵌套学习(代码)
{{include tmpl="#header" /}}中的include前不要加#,否则就是坑模板嵌套demo网址:http://borismoore.github.io/jsrender/demos/demos.html
分类:Web程序   时间:2014-05-01 19:01:40    阅读次数:449
Servlet
Servlet是运行在Web服务器端的java应用程序,它用java语言编写,具有java语言的优点。与普通的java程序区别是,servlet对象具有对http请求处理的功能,并且其运行需要web容器的支持。Servlet常用API(更多方法及声明请查阅java ee API)servlet接口p...
分类:其他好文   时间:2014-05-01 18:58:59    阅读次数:343
thinkphp的分页格式自定义
public function index(){         header('Content-Type:text/html;charset=utf-8 '); $M = M("Constant");           $count = $M->where($where)->count();           import("ORG.Util.Page"); // 导入分页类   ...
分类:Web程序   时间:2014-04-30 22:27:39    阅读次数:343
SQL编码中注意的性能问题
1、选择合适的数据类型 为列选择最小化的数据类型 如果一列中的文本长度不一,使用VARCHAR而不是CHAR 不存储Unicode不要使用NVARCHAR或者NCHAR 如果一行的长度不超过8000,使用VARCHAR而不是TEXT 对于仅存数字的列要使用数字类型而不要用字符类型 不要使用字符串类型存储日期数据。 2、谨慎使用触发器 保持触发器内的代码最小化 可能的情况下尽量用其...
分类:数据库   时间:2014-04-30 22:24:38    阅读次数:334
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!