using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window...
策略模式定义了算法族,分别封装起来,让它们之间可以互相替换,此模式让算法的变化独立于使用算法的客户Interfaceusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ...
分类:
其他好文 时间:
2014-12-10 12:29:32
阅读次数:
161
源代码:using System;using System.Collections.Generic;using System.Linq; using System.Text;using System.Threading.Tasks; using System.IO;namespace Console...
分类:
其他好文 时间:
2014-12-10 12:28:35
阅读次数:
171
EditText mTextInput=(EditText)findViewById(R.id.input);//EditText对象int index = mTextInput.getSelectionStart();//获取光标所在位置String text="I want to input s...
分类:
移动开发 时间:
2014-12-10 12:24:44
阅读次数:
220
Lists 列表 列表是一个有序序列(集合),可以理解为其他语言中的数组类型,但是列表更灵活更强大。 列表由方括号[]来定义的,它的元素可以是任意类型或对象,一个列表中可以包含混合元素。 例: x = [] 创建空...
分类:
编程语言 时间:
2014-12-10 12:20:51
阅读次数:
220
在网上看了好多,发现要么太啰嗦,要么不够完美:其实只需要两步:1.禁掉输入法:第二步 采用正则表达式:cs后台代码://using System.Text.RegularExpressions; private void tb_PreviewTextInput(object sende...
js获取select标签选中的值var obj = document.getElementByIdx_x(”testSelect”); //定位idvar index = obj.selectedIndex; // 选中索引var text = obj.options[index].text; //...
分类:
Web程序 时间:
2014-12-10 10:33:16
阅读次数:
200
关于js 控制 中 内容显示这几天一直在调试IE8兼容性问题开发使用浏览器为FireFox,个人觉得FireFox下很多CSS,JS规范不够严谨,在使用其他浏览器时效果不同(虽然开发时使用FireFox很酷很便捷)之前一直这样写:$("title").text(index_name);使用IE8如下...
分类:
Web程序 时间:
2014-12-10 10:30:43
阅读次数:
168
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 第二节课{ class Program { static ...
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;//命名空间namespace 第一节课{ //类 class Program...