最新文章列表

Linux Shell脚本文件的判断、中文符号及其字符串入参解析

1、shell脚本中判断文件是否存在 if [ -f  "$var" ] then...... 2、shell脚本中判断字符串为空  if [ -z "$str"] then...... 3、shell脚本中判断字符串不为空 if[ "$str"] then..... 4、字符串入参的注意事项       将字符串当做入参时,要 ...
quanminchaoren 评论(0) 有9433人浏览 2012-10-19 19:40

javascript判断上传图片文件类型(后缀名)

  1、根本是正则表达式,不存在浏览器问题   /* * 判断图片类型 * * @param ths * type="file"的javascript对象 * @return true-符合要求,false-不符合 */ function checkImgType(ths){ if (ths.value == "&qu ...
java110eye 评论(0) 有16420人浏览 2011-08-07 15:19

最近博客热门TAG

Java(141741) C(73643) C++(68602) SQL(64557) C#(59604) XML(59131) HTML(59042) JavaScript(54917) .net(54782) Web(54511) 工作(54116) Linux(50906) Oracle(49861) 应用服务器(43285) Spring(40811) 编程(39452) Windows(39380) JSP(37540) MySQL(37267) 数据结构(36420)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics