./当前目录/网站主目录../上层目录~/网站虚拟目录如果当前的网站目录为E:\wwwroot应用程序虚拟目录为E:\wwwroot\company浏览的页面路径为E:\wwwroot\company\news\show.asp在show.asp页面中使用Server.MapPath("./")返回...
分类:
移动开发 时间:
2014-04-30 19:34:51
阅读次数:
400
1 public String SentenceGerneration(String
pattern, ArrayList candSlotList, ArrayList argList){2 ArrayList candSentenceList
= new ArrayList();3 ...
分类:
其他好文 时间:
2014-04-30 18:48:43
阅读次数:
433
代码如下:JRadioButton useCache=new
JRadioButton("Use cache");// 初始化单选框useCache.setFont(new
Font("Arial",Font.PLAIN,16));// 设置字体JRadioButton noUseCache=new...
分类:
其他好文 时间:
2014-04-30 18:36:19
阅读次数:
504
1. 存入图片 Connection con=db.conn; PreparedStatement
pstmt; //File file = upload; FileInputStream inputImage = new FileInputS...
分类:
编程语言 时间:
2014-04-30 17:27:01
阅读次数:
476
private void txtName_KeyDown(object sender,
KeyEventArgs e) { Regex rg = new Regex("^[\u4e00-\u9fa5\b]$"); //\b是退格键 ...
分类:
Web程序 时间:
2014-04-30 16:16:38
阅读次数:
398
一、文本编辑框字符数限制问题方法一:在 xml
文件中设置文本编辑框属性作字符数限制如:android:maxLength="10" 即限制最大输入字符个数为10方法二:在代码中使用InputFilter
进行过滤//editText.setFilters(new InputFilter[]{new...
分类:
移动开发 时间:
2014-04-30 14:42:43
阅读次数:
446
void mobile_KeyUp(object sender, KeyEventArgs e) {
Regex rg = new Regex("^[0-9]{1,11}$"); Regex rg1 = new Regex("\b"); ...
分类:
Web程序 时间:
2014-04-30 13:32:53
阅读次数:
409
一、创建1、 jQuery
plugin(function($){$.fn.MyPlugin=function(){ //js代码}})(jQuery)
为了与页面上其他代码友好相处,将plugin定义在一个闭包里,MyPlugin是plugin的名字。调用方式:$(‘选择器’).MyPlugin(...
分类:
Web程序 时间:
2014-04-30 13:23:36
阅读次数:
535
失败提示:reating a new initrd boot image for the
kernel. update-initramfs: Generating /boot/initrd.img-3.11.0-12-generic
vmware-tools-thinprint initctl: J...
分类:
其他好文 时间:
2014-04-29 11:46:47
阅读次数:
684
方法一:
使用Ubuntu一段时间后,就会发觉由于自动升级,系统里安装了很多内核。像我,竟然安装了下面那么多,这个造成了漫长的启动列表。必须删掉一些不用的。
首先就是使用如下命令,列出所有安装的内核,下表中,带有image的就是内核文件。从中选择要卸载的包,用apt-get来卸载admingu@an...
分类:
其他好文 时间:
2014-04-29 11:42:46
阅读次数:
572