public void replaceImageColor(String file, Color srcColor, Color targetColor) throws IOException{ URL http; if(file.trim().startsWith("h...
分类:
编程语言 时间:
2014-12-17 20:25:16
阅读次数:
763
Chrome,Firfox以下端口的web站点无法访问,所以在配置自己站点时应该避开以下端口:
// tcpmux 7, // echo 9, // discard 11, // systat 13, // daytime 15, // netstat 17, // qotd 19, // chargen 20, // ftp data 21, ...
分类:
其他好文 时间:
2014-12-17 16:29:57
阅读次数:
173
SQL 中的 TRIM 函数是用来移除掉一个字串中的字头或字尾。最常见的用途是移除字首或字尾的空白。这个函数在不同的资料库中有不同的名称:
MySQL: TRIM( ), RTRIM( ), LTRIM( )Oracle: RTRIM( ), LTRIM( )SQL Server: RTRIM( ), LTRIM( )
各种 trim 函数的语法如下:
TRIM ( [ [位置] [要移...
分类:
数据库 时间:
2014-12-15 20:25:30
阅读次数:
202
function Trim(str)
{
//把str首尾的空格去掉
var temp1 = str.replace(/(^\s*)|(\s*$)/g, "");
//把str首尾的单引号去掉
var temp2 = temp1.replace(/(^'*)|('*$)/g, "");
//把str首尾的双引号去掉
var temp3 = temp2.replac...
分类:
Web程序 时间:
2014-12-15 20:21:19
阅读次数:
191
//1.模拟一个trim方法,去除字符串两端的空格。 public String MyTrim(String str){ int beginIndex = 0; int endIndex = 0; String newstr; for(int i=0;i=0;i--){ if(str.charAt(...
分类:
其他好文 时间:
2014-12-15 00:08:05
阅读次数:
245
类(类型)://.Length:获取字符串的长度,返回int型 //.Trim去除字符串前后的空格 //.TrimStart()去除前空格 //.TrimEnd()去除后空格; //.ToUpper转换为大写; //.ToLower转换为小写; //.IndexOf从前面开始截取字符段在第几位,返回...
2014-12-09 BaoXinjian一、字符函数1. LOWER (strexp) - 返回字符串,并将所有的字符小写.select lower('ABCDE') from dual2. UPPER (strexp) 返回字符串,并将所有的字符大写.select upper('abcdf') ...
分类:
数据库 时间:
2014-12-12 14:40:55
阅读次数:
293
mmap,mmap64,munmap---map or unmap files or devices into memoryvoid *mmap(void* addr,size_t length, int prot, int flags, int fd, off_t offset);void *mm...
分类:
系统相关 时间:
2014-12-11 01:32:59
阅读次数:
351
<?php$str="你好123";$res = trim($str,'\"\"');echo $res;rtrimltrimtrim($str,'符号');同理。
分类:
其他好文 时间:
2014-12-10 19:37:17
阅读次数:
215
今天同学调试jsp页面的表单传值,从a.jsp页面提交表单数据(就一项数据)到b.jsp页面,在b.jsp页面设置一个判断,来检验接收到的数据是否为空,若使用str==null做判断,无传值过来的情况下判断也为false(应该为ture才对啊),不知道为什么,求高手指导!!!但是,使用str.tri...
分类:
其他好文 时间:
2014-12-07 21:41:14
阅读次数:
510