关于“\b”正则表达式中的“\b”是匹配除 数字、字母、汉字、下划线以外的所有字符。例如:
string tel = "hi Lucy"; Regex rx = new Regex(@"\bhi\b.*\bLucy\b"); bool ...
分类:
其他好文 时间:
2014-06-12 00:43:42
阅读次数:
295
我现在是这么画的,class A { private GeometryGroup
_lines; private Path _path; public A() { _path.Data = _lines; } public Draw() {
LineGeometry line = new LineG...
分类:
其他好文 时间:
2014-06-11 23:48:13
阅读次数:
1241
Merge two sorted linked lists and return it as
a new list. The new list should be made by splicing together the nodes of the
first two lists./** * Def...
分类:
其他好文 时间:
2014-06-11 22:56:31
阅读次数:
257
readonly字段可以在声明或构造函数中初始化。class Age { readonly
int age; public Age() { age = 10; } public void ChangeAge...
分类:
其他好文 时间:
2014-06-11 22:55:11
阅读次数:
219
程序场景:一系列的图片,从第一张到最后一张依次加载图片,形成“动画”。生成BitmapImage的方法有多种:1、var source=new
BitmapImage(new
Uri("图片路径",UriKind.xxx));一般的场景使用这种方法还是比较方便快捷,但是对于本场景,内存恐怕得爆。2、...
分类:
其他好文 时间:
2014-06-11 22:17:33
阅读次数:
970
正好做项目需要,做下笔记比如我要获取2014年6月的天数首先构造一个日期函数 var date
= new Date(2014, 6, 0);然后date.getData()
就是获取的最后一天了我们在构造日期对象时,6其实是实际构造的7月份,因为月份是从0开始的。而第三个数0天数,要求最小是1号,...
分类:
编程语言 时间:
2014-06-11 22:13:10
阅读次数:
269
mListView.setSelectionFromTop(position,
y);利用上述方法设置Item在ListView中的位置。y为Item距离ListView顶端的距离,也就是图中的1;计算方式:1 = 2 - 3
-4坐标计算:int[] location = new int[2];v...
分类:
微信 时间:
2014-06-11 22:03:32
阅读次数:
516
一。重要方法1.translate2.scale3.rotate二。注意1.明确顺序canvas.rotate(45);canvas.drawRect(new
Rect(50, 50, 100, 100), paint);如果顺序调换,则没有旋转的效果2.转换的时候,需要把转换的中心点移到shape...
分类:
移动开发 时间:
2014-06-11 12:48:30
阅读次数:
379
replace(/\-/g, "\/")是根据验证表达式把日期转化成长日期格式 1 function
checkStartTimeAndEndTime(startTime, endTime) { 2 var sTime = new
Date(startTime.replace("/\-/g"...
分类:
Web程序 时间:
2014-06-11 12:32:59
阅读次数:
313