Ctrl+L 选择整行(按住-继续选择下行)Ctrl+KK 从光标处删除至行尾Ctrl+K Backspace 从光标处删除至行首Ctrl+J 合并行(已选择需要合并的多行时)Ctrl+KU 改为大写Ctrl+KL 改为小写Ctrl+D 选择字符串 (按住-继续选择下个相同的字符串)Ctrl+M 光...
分类:
其他好文 时间:
2015-02-02 14:01:56
阅读次数:
146
统计斜杠出现了奇数次还是偶数次
点击打开链接
Long time ago, most of PCs were equipped with video cards that worked only in text mode. If theprogrammer wanted to show a picture on a screen, he had to use pseudograph...
分类:
其他好文 时间:
2015-02-02 12:41:05
阅读次数:
173
多行文本溢出显示省略号(...)的方法现在的浏览器都支持text-overflow:ellipsis属性,用来实现单行文本的溢出显示省略号。如:单行文本:overflow:hidden;white-space:nowrap;text-overflow:ellipsis一些其他技巧可参考:http:/...
分类:
其他好文 时间:
2015-02-02 12:21:15
阅读次数:
177
在这里,我们先说说JSP/Servlet中的几个编码的作用。 在JSP/Servlet 中主要有以下几个地方可以设置编码,pageEncoding="UTF-8"、contentType="text/html;charset=UTF-8request.setCharacterEncoding("U....
分类:
Web程序 时间:
2015-02-02 12:05:27
阅读次数:
110
问题:获取Text控件的内容
场景:Win+R启动运行框,需要设置或获取Edit控件中的内容
解决:
1.使用.NETFramework
UIA中有个TextPattern,里面有TextPatternRange,即可得到Text的内容
代码如下:
var desktop = AutomationElement.RootElement;
va...
分类:
其他好文 时间:
2015-02-02 10:50:32
阅读次数:
1099
1、用会话框的方式来添加内容,需先创建一个类用于存放输入的内容如Person类。2、正则表达式之整形判断:matches("\\d+"),表示输入的是n位的整形。3、adapter.notifyDataSetChanged();表示数据的刷新。4、Toast.makeText(getApplicationContext(),Text,2000).show();此输出提..
分类:
移动开发 时间:
2015-02-02 07:10:53
阅读次数:
225
修改XtraMessageBox的内容字体大小 public static DialogResult Show(UserLookAndFeel lookAndFeel, IWin32Window owner, string text, string caption, DialogResult[] b...
分类:
其他好文 时间:
2015-02-02 07:04:05
阅读次数:
1213
最近接触一些需要csv,txt,excel文件之间的转换,根据一些网上搜索加上自己的改动,实现自己想要的结果为主要目的,代码的出处已经找不到了,还请见谅,以下主要是针对csv&excel 和txt&excel写的perl脚本。主要用到的模块是:Text::CSVSpreadsheet::WriteE...
分类:
其他好文 时间:
2015-02-02 07:03:38
阅读次数:
761
1.布局文件代码如下: 实现过程中,EditText提出警告the text field does not specify an inputType or a hint,原因是EditText控件需要定义inputType属性,其属性可以自行在网上查找,Android:inputType="numb...
分类:
移动开发 时间:
2015-02-02 00:27:34
阅读次数:
164
<TextView
????????android:layout_width="wrap_content"
????????android:layout_height="wrap_content"
????????android:text="@string/hello_world"
????????android:id="@+i...
分类:
编程语言 时间:
2015-02-01 23:24:46
阅读次数:
367