php中$_SERVER[PHP_SELF] 和 $_SERVER[SCRIPT_NAME]之间的区别 “PHP_SELF”? 当前正在执行脚本的文件名,与 document root 相关。举例来说,在 URL 地址为 http://www.jb51.net/test.php/foo.bar 的脚本中使用 ...
分类:
Web程序 时间:
2015-05-02 20:51:46
阅读次数:
175
设计script时,有时候需要修改脚本,例如删除或置换某些关键词。像这种在script执行过程动态修改文件的做法,称为流编辑。具有流编辑能力的工具,称为流编辑器。sed是这方面的强者。另外script执行时可能要制作报表,呈现各字段信息,awk完美解决。一、正则表达式正则表达式是..
分类:
系统相关 时间:
2015-05-02 18:20:02
阅读次数:
176
package main import "github.com/nsf/gothic" const init_script = ` catch { destroy .clock errorswindow } set w [ toplevel .clock ] wm ?withdraw ?. wm ?title ?$::w ?"clock" tk ?appname ?"cloc...
分类:
编程语言 时间:
2015-05-02 09:59:36
阅读次数:
209
For better site performance, we may use popular libraries from CDN like Google Hosted Libraries...If you have your own host with SSL support, and its resources are located at the the same path as these in Googl...
分类:
Web程序 时间:
2015-05-01 20:01:02
阅读次数:
192
<html>
<head>
<style>
div{width:100px;height:100px;position:absolute;background:red;left:0;top:50px;}
</style>
<script>
vartimer=null;
functionstartMove()
{
clearInterval(timer);//开定时器前先关闭定时器。否则会多开几个定时器,d..
分类:
Web程序 时间:
2015-05-01 12:11:17
阅读次数:
104
Script这个命令用来将操作的过程保存在日志中
Script的命令形式:script [-a] [-q] [filename]
# [-a] 追加,不覆盖以往的记录
# [-q] 安静模式,不显示script开始的信息
# [filename] 保存结果的日志名,如果不输制定文件名,默认存入当前目录的 **typescript** 文件中更多参数参考man手册实例说明$ script...
分类:
系统相关 时间:
2015-05-01 12:04:24
阅读次数:
207
(function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;ga.src = ('https:' == document.location.protocol ...
分类:
编程语言 时间:
2015-05-01 10:39:17
阅读次数:
124
在Redis-Sentinel的client-reconfig-script脚本中设置VIP当使用Redis-Sentinel做冗余时,如何以不同方式使用VIP,我认为使用client-reconfig-script脚本是一种可行方法,让我们试试。环境CentOS 6.5 x86_64
redis-2.8.9-1.el6.remi.x86_64
三台机器构成一个可用的Redis集群。
端口默认63...
分类:
其他好文 时间:
2015-05-01 09:23:20
阅读次数:
301
一导入js库 <script src="../js/jquery.js" type="text/javascript"></script> <script src="../js/jquery.validate.js" type="text/javascript"></script> ? 二、默认校验规则 (1)required:true????????...
一、微博登陆第三方0、去开发平台完成开发者认证:链接地址创建一个示例应用,获取APPKey<scriptsrc=http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=3343891779type="text/javascript"charset="utf-8"></script>复制代码2、部署html和js<divid="wb_connect..
分类:
其他好文 时间:
2015-04-30 10:55:32
阅读次数:
118