导航和打开窗口使用window.open()方法可以导航到一个特定的URL也可以打开一个新的浏览器窗口,接收4个参数:要加载的URL、窗口目标、特性字符串和一个表示新页面是否取代浏览器历史记录中当前加载页面的布尔值。通常只需要传递第一个参数,最后一个参数只在不打开新窗口的情况下使用,如果传递的第二个...
分类:
编程语言 时间:
2014-05-23 08:51:06
阅读次数:
200
zTree实现获取一级节点数据
1、实现源码
zTree实现基本树
<!--
var setting = {
data: {
simpleData: {
enable: true
}
}
};
var zNodes =[
{ id:1, pId:0, name:"湖北省", open:true...
分类:
其他好文 时间:
2014-05-23 08:20:00
阅读次数:
378
zTree实现删除树子节点
1、实现源码
zTree实现基本树
<!--
var setting = {
data: {
simpleData: {
enable: true
}
}
};
var zNodes =[
{ id:1, pId:0, name:"湖北省", open:true},...
分类:
其他好文 时间:
2014-05-23 08:08:12
阅读次数:
214
zTree实现删除树节点
1、实现源码
zTree实现基本树
<!--
var setting = {
data: {
simpleData: {
enable: true
}
}
};
var zNodes =[
{ id:1, pId:0, name:"湖北省", open:true},...
分类:
其他好文 时间:
2014-05-22 12:40:44
阅读次数:
288
Gallery和swithcer联合使用
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complian...
分类:
其他好文 时间:
2014-05-22 11:19:05
阅读次数:
288
zTree实现单独选中根节点中第一个节点
1、实现源码
zTree实现基本树
<!--
var setting = {
data: {
simpleData: {
enable: true
}
}
};
var zNodes =[
{ id:1, pId:0, name:"湖北省", open...
分类:
其他好文 时间:
2014-05-22 08:54:06
阅读次数:
309
1. 为什么要用接口2. 工厂方法模式1. 为什么要用接口 之前的打印机程序,
open、close、print对于惠普、佳能实际上应该都是不同的, 不同的打印机, 开机、关机、打印都应该不同
所以更靠谱的是将Printer定义为interface类型1 interface Printer{2 .....
分类:
其他好文 时间:
2014-05-22 04:50:04
阅读次数:
228
当入行压力测试时出现下列错误[root@zabbix~]#ab-n3000-c3000http://192.168.0.2/ThisisApacheBench,Version2.3<$Revision:655654$>Copyright1996AdamTwiss,ZeusTechnologyLtd,http://www.zeustech.net/LicensedtoTheApacheSoftwareFoundation,http://www.apache.org/Ben..
分类:
其他好文 时间:
2014-05-20 22:18:38
阅读次数:
397
1. 文件的打开读写 关闭
int open(const char *pathname,int flag,…) 打开一个文件
成功则返回文件描述符,若出现则返回-1
flag可以取下面的常量
O_RDONLY 只读打开
O_WRONLY 只写打开
O_RDWR 读写打开
其它的常量 O_APPEND,O_CREAT,O_EXCL,O_TRUNC,O_NOCTT...
分类:
其他好文 时间:
2014-05-20 16:07:29
阅读次数:
269
zTree实现基本树
1、实现源码
zTree实现基本树
<!--
var setting = {
data: {
simpleData: {
enable: true
}
}
};
var zNodes =[
{ id:1, pId:0, name:"湖北省", open:true},...
分类:
其他好文 时间:
2014-05-20 14:48:51
阅读次数:
230