1. List 介绍: List是一个链表结构,主要功能是push、pop、获取一个范围的所有值等等,操作中key理解为链表的名字。 Redis的list类型其实就是一个每个子元素都是string类型的双向链表。 我们可以通过push、pop操作从链表的头部或者尾...
分类:
其他好文 时间:
2015-06-11 16:50:43
阅读次数:
107
DAl: #region 查询拼接 public DataView SelectAppend(string username, string sex, string permission) { string procedure = "exec dbo.zmt_procedure @usern...
分类:
其他好文 时间:
2015-06-11 16:47:25
阅读次数:
105
背景:主从环境一样,字符集是utf8。Slave复制报错,平时复制都正常也没有出现过问题,今天突然报错:150610 17:47:10 [ERROR] Slave SQL: Error 'Incorrect string value: '\xD3\xC3\xB6\xD2\xBB\xBB...' fo...
分类:
数据库 时间:
2015-06-11 16:44:06
阅读次数:
151
UrlHelper u = new UrlHelper(this.ControllerContext.RequestContext);string url = u.Action("About", "Home", null);生成超链接string link = HtmlHelper.Generate...
分类:
其他好文 时间:
2015-06-11 16:38:44
阅读次数:
98
string str1 = ((ComboBoxItem)this.cboBoxRate1553B.Items[this.cboBoxRate1553B.SelectedIndex]).Tag.ToString();string str2 = (this.cboBoxRate1553B.Select...
项目中要使用下拉检索的时候要支持拼音首字母。本来拼音可以写后台,这里放前台了。放代码1. pinyin.js ,最后为了使用方便,直接为string对象添加了扩展方法/* File Created: 六月 10, 2015 *//***************创造者:cst功能:js将汉字转拼音调用...
分类:
其他好文 时间:
2015-06-11 16:24:20
阅读次数:
1013
前言这次探索源自于自己一直以来对ARC的一个疑问,在MRC时代,经常写下面的代码:123456789- (void)dealloc{self.array = nil;self.string = nil;// ... //// 非Objc对象内存的释放,如CFRelease(...)// ... //...
分类:
移动开发 时间:
2015-06-11 16:12:14
阅读次数:
326
标准string对象支持长度可变的字符串操作。使用它需要包含头文件
,它位于std命名空间下。1.string对象的定义和初始化string s1; //默认构造函数,s1为空串
string s2(s1); //将s2初始为s1的一个副本
string s3("value"); //将s3初始为一个字符串字面值的副本
string s4(n,'c'); //将s4初始为字符串'c'的n个副本需要...
分类:
其他好文 时间:
2015-06-11 14:41:00
阅读次数:
433
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a palindr...
分类:
其他好文 时间:
2015-06-11 14:38:52
阅读次数:
117
declare --类型定义 strsql string(500); type prizeinfo is record( prizecode VARCHAR2(200), prizetypeid number, prizenam...
分类:
其他好文 时间:
2015-06-11 14:29:04
阅读次数:
112