select下拉框在项目开发中是经常用到的,特别是在联级菜单方面的应用更为广泛。但是,对于一些初学者来说,如何获取下拉框子节点option的value值和文本内容,还是有一点难度的。其他的就不说了,现在我就写一段代码,简单的说明一下如何获取value值以及文本内容(text),必要地添加了注释,希望...
分类:
Web程序 时间:
2015-02-28 12:55:30
阅读次数:
167
1 // 生成 html select option 标签 2 function build_options($options, $opt='',$k='') { 3 $frags = array(); 4 if (is_string($options)) 5 { 6 ...
分类:
其他好文 时间:
2015-02-28 10:09:19
阅读次数:
133
CCNA实验五配置路由器为DHCP服务器环境:WindosXP,GNS3.0.7目的:实践如何配置路由器为DHCP服务器实验A:1、开始首先安装Loopback0虚拟网卡,然后配置它自动获得IP地址:打开GNS新建一个工程,创建拓扑:右键Colud“Loopback0”选择“配置”进行如下操作:接着连接设备启动R1..
分类:
其他好文 时间:
2015-02-27 18:39:36
阅读次数:
263
linux上的日志系统 syslog syslog-ng 开源 商业 日志级别:信息详细程度。 子系统:facility,设施。 动作:日志滚动(日志切割): #logrotate[OPTION]滚动、压缩或邮件系统日志。 配置文件: /etc/logrotate.conf 计划任务文件: /etc/cron.daily/logrotate 各子系统..
分类:
系统相关 时间:
2015-02-27 18:36:53
阅读次数:
227
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=737
/***
Uva 796 求桥
题目要求:输出题目中所有的桥,按其所连接的点从小到大的顺序输出
解题思路:tarjan算法,所有树枝边都是桥(dfn[u]<low[v]),利用vector存储一下就可...
分类:
其他好文 时间:
2015-02-27 18:24:57
阅读次数:
122
# android studio mac 快捷键 总结 (不断更新)[TOC]## svn| 描述 | 快捷键 || ---------- | -------- || 提交修改 | Cmd + K || 更新代码 | Cmd + T || VCS option | Ctr...
分类:
移动开发 时间:
2015-02-27 16:49:03
阅读次数:
137
1.文件相关 新建:command+N ctrl+N 保存:command+S ctrl+S 全选:command+A ctrl+A 复制:command+C ctrl+C 粘贴:command+V ctrl+V 移动:command+option+V(文件无法进行comman...
分类:
系统相关 时间:
2015-02-27 15:09:15
阅读次数:
169
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=251
A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting...
分类:
其他好文 时间:
2015-02-27 12:00:45
阅读次数:
154
When you use the bind option of the mount command, you must be sure that the file systems are mounted in the correct order. In the following example, ...
分类:
其他好文 时间:
2015-02-26 21:33:04
阅读次数:
129
一 ISO定制项清单安装系统为centos6.5 (base server),安装方式为全新安装使用ext4分区格式安装前可以交互输入root密码,主机名,swap分区大小,之后安装过程自动化关闭防火墙,selinux网络为dhcp方式获取时区为Asia/Shanghai分区表类型为mbr默认设置三...
分类:
其他好文 时间:
2015-02-26 19:57:13
阅读次数:
188