- 博客(6)
- 收藏
- 关注
原创 webx ajax 请求
$(document).ready(function(){$("button").click(function(){$.ajax({ url:'Register2.json', type:'post', data:{'name':'test1', 'city':'test2'}, success:function(data){ alert(data);
2015-05-26 00:38:48 527
转载 脚本替换
#!/bin/bashfunction print_log{ echo "[$(date +'%Y-%m-%d:%H:%M:%S')]: $@" >&2 return 0}if [ $# -ne 2 ]then echo "Usage: sh $0 blockid_file snapshot_xml" exit 1fiblockid_file=$
2014-06-05 15:35:53 503
转载 linux多线程 --信号量
#include #include "Configure.h"#include "Utils.h"#include #include using namespace std;#define SIZE 1024char buffer[SIZE];sem_t sem;void *Process(void *args){ sem_wait(&sem); while(
2014-06-03 15:12:18 383
转载 linux多线程 -- 互斥量
#include #include "Configure.h"#include "Utils.h"#include using namespace std;queue product;pthread_mutex_t mutex;void *Produce(void *args){ int i; for(i = 0; i < 10; i++){ p
2014-06-03 14:49:00 376
转载 Linux读取一行文本的方法
#define _GNU_SOURCE#include #include intmain(void){ FILE * fp; char * line = NULL; size_t len = 0; ssize_t read; fp = fopen("/etc/motd", "r
2014-05-28 15:45:26 1325
转载 bash 递归遍历文件夹
#!/bin/shlist_dir(){for file in $1/*doif [ -d $file ]then echo $filelist_dir $fileelif [ -f $file ]thenecho $filefidone}if [ $# = 0 ]thenecho at least 1 arguments
2014-05-27 21:25:41 577
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人