添加到目录: 结构如上:假设红色部分是未来元素$(".dir-li #dir-ctrl-dv").on('change','.dir-ctrl',function () { #....code ...
分类:
Web程序 时间:
2014-10-17 01:44:53
阅读次数:
307
相关命令文件 1、runCommandInThreads.sh 多线程实现主代码 cdir=$(dirname?$BASH_SOURCE)?##Current?directory?of?this?script?file.
source?$cdir/logUtil.sh
function?createFile()?{
local?dir...
分类:
编程语言 时间:
2014-10-16 21:12:53
阅读次数:
274
安装了PGI MPICH netcdf1../configure Will use NETCDF in dir: /opt/netcdf$JASPERLIB or $JASPERINC not found in environment. Using default values for librar...
分类:
其他好文 时间:
2014-10-16 02:11:01
阅读次数:
655
tarxfphp-5.4.13.tar.bz2cdphp-5.4.13./configure--prefix=/usr/local/php--with-mysql=/usr/local/mysql--with-openssl--with-mysqli=/usr/local/mysql/bin/mysql_config--enable-mbstring--with-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr..
分类:
Web程序 时间:
2014-10-15 16:53:01
阅读次数:
259
本系列作为Effective JavaScript的读书笔记。
ECMAScript标准库不大,但是提供了一些重要的类型如Array,Function和Date。在一些场合下,你也许会考虑继承其中的某个类型来实现特定的功能,但是这种做法并不被鼓励。
比如为了操作一个目录,可以让目录类型继承Array类型如下:
function Dir(path, entries) {
...
分类:
编程语言 时间:
2014-10-15 12:13:50
阅读次数:
218
1.计算文件数和目录数下面的语句可以帮你计算有多少个文件和多少个目录# ls -l * |grep "^-"|wc -l ---- to count files# ls -l * |grep "^d"|wc -l ----- to count dir还可以将以上的语句变成script或做个alias...
分类:
系统相关 时间:
2014-10-15 10:32:00
阅读次数:
284
51 cd boost_1_53_0 52 tail -f build_log 53 dir 54 cd gearmand-1.1.8 55 ./configure 56 could not find gperf 57 could not find gperf ...
分类:
其他好文 时间:
2014-10-15 09:14:22
阅读次数:
351
请使用root执行改脚本
#!/bin/bash
APT_DIR="/etc/apt"
VERSION=`awk‘{print$2}‘/etc/issue`
case$VERSIONin
14.04|14.04.1)RELEASE="trusty";;
13.04|13.04.1)RELEASE="raring";;
13.10)RELEASE="saucy";;
12.04|12.04.1|12.04.2|12.04.3|12.04.4|12.04.5)RELEASE="precise";..
分类:
系统相关 时间:
2014-10-15 05:31:10
阅读次数:
222
#!/usr/bin/pythonimport osimport stringdef get_name(path_name, file_str):dir_name = []dir_name = os.listdir(path_name)for i in range(0, len(dir_name))...
分类:
编程语言 时间:
2014-10-14 23:48:49
阅读次数:
169
#!/bin/bash
base_dir=/data/Mysql-BackCenter
delete_day=30
delete_log_dir=/data/log/delete
download_dir=$base_dir/ZZB-7
vardate=$(date?+%Y%m%d)
datebefore=$(date?-d?"1?days?ago"?+%Y%m%d)
cdmd...
分类:
数据库 时间:
2014-10-14 21:29:59
阅读次数:
204