1. 这段代码是正在使用的一个小框架,发现extend的实现有点问题,于是深入研究下js的继承实现的细节问题。 Class=function(){ var klass = function(){ this.init.apply(this,arguments); } klass.prototype.init = function(){}; klass.supper = function(){}; klass.extend = ...

    阅读全文
  2. session_start(); session_destroy(); $home_url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/index.php'; header('Location: ' . $home_url);   ...

    阅读全文
  3. 49290

    set,env和export这三个命令都可以用来显示shell变量,其区别? set 用来显示本地变量,显示当前shell的变量,包括当前用户的变量 env 用来显示环境变量,显示当前用户的变量 export 用来显示和设置环境变量,显示当前导出成用户变量的shell变量   每个shell有自己特有的变量(set)显示的变量,这个和用户变量是不同的,当前用户变量和你用什么shell无关,不管你用什么shell都在,比如HOME,SHELL等这些变量,但shell自己 ...

    阅读全文
  4. 55070

    Connecting to Market... Market URL Title:食为天 Pages:4 2.    Vegetables    黄瓜    5.60    2.00斤     3.    Vegetables    四季豆    4. ...

    阅读全文
  5. 54380

    学习vim首先了解它的几种模式,然后学会使用help。有了这些后就记住一些常用的命令。 1. 复制粘贴 (不考虑ctrl+c 和ctrl +v的情况下) y为复制(yank) p为粘贴(paste)在光标的后面 P为粘贴在光标的前面 d为剪切 x为删除 复制剪切前需要选择复制内容,所以y 命令是与当前光标位置相关的。 yw              表示拷贝从当前光标到光标所在单 ...

    阅读全文
  6. eclipse中设置UTF-8等其他字符集。 1.windows->Preferences -> General ->Workspace,右 侧Text file encoding,选择Other,改变为UTF-8。  2. 关闭eclipse并重新打开eclipse。 utf8文档的乱码消失。 这样设置针对整个workspace有效。 如果需要针对特定的文件类型更改字符集编码,则可以通过: 3.windows->Preferences ...

    阅读全文
  7. 现在有一个表及其所有的字段名称,需要定义常量名称以供后期使用。 需求:有字符串  TDate SalesName SCode SalesCode SName ActBuyNum BMoney ActSellNum SMoney PBuy CPrice CTypeDes ChgRadio RChange1DO RChange2DO RChange3DO RChange5DO RChange10DO RChange20DO RChange15DO RChange30DO R ...

    阅读全文
  8. 57070

    keep following things in mind: Everyone is good at estimating the small tasks which are always not bigger than 3 days. Big project can be divided into media tasks/features. Features can be divided into small tasks Tasks can be several typ ...

    阅读全文
  9. 57310

    原文出处:https://www.scrumalliance.org/community/articles/2007/march/glossary-of-scrum-terms Glossary of Scrum Terms Burndown Charts Daily Scrum Meeting Impediments Product Backlog Product Backlog Item Product Backlog Item Effort P ...

    阅读全文
  10. 使用JSOUP写了个一小工具来扫描给定的字符集来查看尚未注册的域名。 1.支持设定字符集,默认26的字母。 2.支持设置前缀和后缀 3.支持设置输出结果文件 4.支持设置线程数 5.支持设置扫描频率和等待时间 6.支持设置域。(.com, .net .....)   对于一次26字母的全扫描,如果为4个字母的域名,即近(26×26×26×26=456976)默认需要大约40几分钟扫描完。后期看看能否有改 ...

    阅读全文
  11. PHP中可以修改HTTP header的几个函数如下: header /header_remove session_start/session_regenerate_id setcookie/setrawcookie 如果在使用上面函数时出现了 Warning: Cannot modify header information - headers already sent (output started at script:line) 根本原因就是应该在o ...

    阅读全文
  12. 60850

    <div class="uploading-files upload-dialog-col" id="uploadFileListContainer"> <dl id="_disk_id_14" class="infinite-listview" style="margin-top: 0px;"> <dd class="clearfix ...

    阅读全文
  13. 移植开发环境时遇到的ECLIPSE启动不来的问题:错误为:Failed to load the JNI shared library "....jdk\jre\bin\client\jvm.dll"。 而安装的另外一个Eclipse版本却能成功启动。 分析: 1)检查路径,如没有问题的,则可排除。 2)检查ECLIPSE版本与JRE版本,这可能引起问题。   我的环境为Win7 64bit + EclipsePHP.安装的JDK为3 ...

    阅读全文
  14. 安装VJET时遇到的问题。 Eclipse版本: 通过Eclipse Marketplace安装VJET时遇到的错误: Cannot complete the install because one or more required items could not be found. Software being installed: Eclipse VJET JavaScript IDE (Incubation) 0.10.0.201303191704 (o ...

    阅读全文
  15. 初次使用curl抓取某宝购物网站内容时遇到了一些问题。 网站301/302跳转问题 网站js跳转问题 http请求与https请求下抓取内容的不同 这里简单记录下问题和解决方案: 1. curl抓住页面常规方法: $my_curl = curl_init(); //初始化一个curl对象 $url = "www.soosmart.com"; curl_setopt($my_curl, CURLOPT_URL, $url) ...

    阅读全文
  16. PHP对变量的处理函数的分类整理如下: 转换变量值类型: boolval — Get the boolean value of a variable doubleval — floatval 的别名 floatval — 获取变量的浮点值 intval — 获取变量的整数值 strval — 获取变量的字符串值 判断类型: is_a ...

    阅读全文
  17. 在configure php时: ./configure --prefix=/home/php5.5.8 --with-apxs2=/home/apache/bin/apxs --with-mysql --with-mysqli --with-gd --enable-mbstring --enable-sockets --enable-shared --with-pdo-mysql --with-jpeg-dir=/usr/lib64 --with-freetype-dir=/usr/ ...

    阅读全文
  18. Spool的基本设置: set colsep ' ';    //column列分隔符 set echo off;     //显示 start启动的脚本中的每个 sql命令,缺省为 on set feedback off;   //回显本次 sql命令处理的记录条数,缺省为 on set heading off;   //输出域标题,缺省为 on set linesize 80; //输出一行字符个数,缺省为80 set ...

    阅读全文
  19. 74660

    Setup instructions Note: Although the demo implementations contained in this repository include source files from remote servers, it is recommended to download all dependencies and upload them to your own server. This excludes script files hoste ...

    阅读全文
  20.    在公司内网访问网站时,浏览器有时会遇到403 CoachingSessionExceeded的告警,这是一些访问资源不能正确显示或者显示错误。而在外网访问同一网站确实正常。研究发现这与公司的安装的Mcfee网关有关,公司内网对相关访问资源设置了限制。     ...

    阅读全文