设计模式总结(3)==========================================singleton pattern单件模式:确保一个类只有一个实例,并提供一个全局访问点。线程安全:同步getInstance方法:public synchronized static Single...
分类:
其他好文 时间:
2014-06-28 16:31:15
阅读次数:
299
今天使用mvc完成简单的增删改,内容比较简单,来熟悉一下mvc,数据库操作是用前面的ef,也算是温习一下ef吧。新建mvc项目,在项目中的Models内添加ef,我这里只操作一下简单的user表。里面有id,name,sex,age字段。完成后如下在Controller中添加user控制器,添加增删...
分类:
Web程序 时间:
2014-06-28 15:16:05
阅读次数:
265
NSArray * array = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);为啥 选择了 NSDocumentDirectory 还是返回一个array 而不是一个 直接一个 do...
分类:
其他好文 时间:
2014-06-28 15:03:51
阅读次数:
159
BACKGROUNDA single physical platform may be segregated into a plurality of virtual networks. Here, the physical platform incorporates at least one vir...
分类:
移动开发 时间:
2014-06-28 14:46:39
阅读次数:
330
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-06-28 14:31:12
阅读次数:
201
Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtime co...
分类:
其他好文 时间:
2014-06-28 13:44:09
阅读次数:
188
Oracle一个数据库里可以分配多个用户,用户创建自己的表,自己创建的表如果不想分配给其他用户使用,其他用户是看不到自己的创建的表的。用户管理: 创建用户: create user chunxiao identified by 123456 修改密码: password chunxaio /...
分类:
数据库 时间:
2014-06-28 13:26:54
阅读次数:
319
/* * Created by SharpDevelop. * User: Administrator * Date: 2013/11/18 * Time: 20:55 * * To change this template use Tools | Options | Coding | Edit ....
分类:
其他好文 时间:
2014-06-28 12:34:14
阅读次数:
466
实现进入一个页面后触发一个的点击事件。由于safari和chrome不支持的click()所以需要对浏览器进行判断var Sys = {}; var ua = navigator.userAgent.toLowerCase(); var s; (s = ua.match(/msie ([\d.]+)...
分类:
其他好文 时间:
2014-06-28 12:11:27
阅读次数:
173
查询表中有多少列select count(1) from user_tab_columns where table_name=upper('M_ReturnPicture')//查询数据中某个用户所创建的表数量SELECT table_name FROM all_tables WHERE owner...
分类:
数据库 时间:
2014-06-24 10:55:01
阅读次数:
274