最终实现效果如上 具体步骤: 1. 手动或SQL修改数据表,增加2个字段 2. 修改admin/countries.php文件,增加表单插入编辑功能, 共计7处,此处忽略具体代码。 3. 之后还要修改两个获取国家下拉列表的函数(前台后台分别对应一个) #includes/functions/func ...
分类:
编程语言 时间:
2016-09-10 10:04:26
阅读次数:
143
参考:https://github.com/angular/angular.js/wiki/Understanding-Directives Injecting, Compiling, and Linking functions When you create a directive, there ...
分类:
Web程序 时间:
2016-09-09 10:13:08
阅读次数:
158
SQL中GROUP BY语句与HAVING语句的使用 转自 ITGirl笑笑 一、GROUP BY GROUP BY语句用来与聚合函数(aggregate functions such as COUNT, SUM, AVG, MIN, or MAX.)联合使用来得到一个或多个列的结果集。 语法如下: ...
分类:
其他好文 时间:
2016-09-07 19:18:16
阅读次数:
315
1. 简单说明:在JSP 2.0后, 你不再需要大刀阔斧地定义一堆TagSupport或BodyTagSupport, 使用JSP Tag Files技术可以实现功能强大的页面模板技术. 在这里抛砖引玉, 结合项目开发, 简单介绍Tag Files技术的应用. 至于详细教程与资料, 请大家参考Jav ...
分类:
编程语言 时间:
2016-09-07 14:26:37
阅读次数:
207
1、显示当前系统上root、fedora或user1用户的默认shell;grep-E"^root\>|^fedora\>|^user1\>"/etc/passwd|cut-d:-f1,72、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();grep-o"[[:alpha:]]\+()"/etc/rc.d/init.d/functions3、使用..
分类:
系统相关 时间:
2016-09-06 23:32:34
阅读次数:
367
本周作业内容:显示当前系统上root、fedora或user1用户的默认shell;#egrep"^(root|user1|fedora)"/etc/passwd|cut-d:-f72、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();#egrep"^[[:alpha:]]+\(\)"/etc/rc.d/init.d/functions3、使用echo..
分类:
其他好文 时间:
2016-09-06 01:22:12
阅读次数:
166
1、显示当前系统上root、fedora或user1用户的默认shell;egrep‘^(root|fedora|user1)\>‘/etc/passwd|cut-d:-f7
#|表示或者,以:为分隔截取第7段2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();grep-o"^[_[:alpha:]]+\(\)"/etc/rc.d/in..
分类:
其他好文 时间:
2016-09-05 17:39:26
阅读次数:
150
1、显示当前系统上root、fedora或user1用户的默认shell;注释:egrep‘^(root|fedora|usr1)\>‘/etc/passwd从/etc/passwd中查找root,fedora,user1用户,存在就匹配,不存在就跳过;cut-d:-f1,7截取第一和第七字段2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小..
分类:
系统相关 时间:
2016-09-05 17:37:56
阅读次数:
236
1、显示当前系统上root、fedora或user1用户的默认shell。[root@centos6-01~]#grep-E"^root\>|^fedora\>|^user1\>"/etc/passwd|cut-d:-f1,7
root:/bin/bash
user1:/sbin/nologin
fedora:/bin/bash2、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,..
分类:
系统相关 时间:
2016-09-05 17:33:20
阅读次数:
278
1、显示当前系统上root、fedora或user1用户的默认shell;egrep"^root|^fedora|^user1"/etc/passwd|cut-d:-f1,72、找出/etc/rc.d/init.d/functions文件中某单词后面跟一组小括号的行,形如:hello();grep"\<[[:alpha:]]\+\>()"/etc/rc.d/init.d/functions3、使用echo命令..
分类:
其他好文 时间:
2016-09-05 17:27:26
阅读次数:
127