1. cookie 是存储于访问者的计算机中的变量。每当同一台计算机通过浏览器请求某个页面时,就会发送这个 cookie。可以使用 JavaScript 来创建和取回 cookie 的值。这是变量序列化和反序列化的过程。   Cookie的格式(属性): cookieName=cookieValue;expires=expiresDate;path=URLpath;domain=siteDomain//cookie   Cookie常用函数: 1 ...

    阅读全文
  2. jQuery.extend = jQuery.fn.extend = function() { var src, copyIsArray, copy, name, options, clone, target = arguments[0] || {}, i = 1, length = arguments.length, deep = false; // Handle a deep copy situation if ( typeof target == ...

    阅读全文
  3. 50450

    className 规定元素的 class 属性。注意:该属性名不是 "class",因为 "class" 是 JavaScript 中的保留字。 类型:String。状态:可写。 currentStyle 这一特定于 IE 的属性应用于元素的所有 CSS 属性的级联组。它是 Window.getComputedStyle() 的仅用于 IE 的替代。 类型:String。状态:可写。 dir 规定元素的 dir ...

    阅读全文
  4. ( function(){ ...... } )( window ); 初次接触jQuery源代码时,它的结构就是如上。这是一个匿名函数被括起来,然后再在后面加一个括号,这个匿名函数就能立即运行起来!这样做有什么好处呢?为什么要这样写?这段代码究竟属不属于闭包呢? 函数声明(function 语句) 正常一个函数的声明和定义如下: function foo(){ ........ } ...

    阅读全文
  5. 50360

    dd --help 常用dd来创建大文件,如dd if=/dev/zero of=/mybigfile bs=128M count=0 seek=24 参数: 1. if=文件名:输入文件名,缺省为标准输入。即指定源文件。< if=input file > 2. of=文件名:输出文件名,缺省为标准输出。即指定目的文件。< of=output file > 3. ibs=bytes:一次读入bytes个字节,即指定一个块大小为by ...

    阅读全文
  6.     廊坊:廊坊发展、华夏幸福、 荣盛发展   保定(含涿洲):恒天天鹅(行情 股吧 买卖点)、巨力索具、乐凯胶片(行情 股吧 买卖点)、宝硕股份、风帆股份(行情 股吧 买卖点)、天威保变、长城汽车(行情 股吧 买卖点)、凌云股份(行情 股吧 买卖点)   石家庄:建投能、博深工具(行情 股吧 买卖点)、常山股份(行情 股吧 买 ...

    阅读全文
  7. call_user_func_array — 调用用户定义的函数,参数使用数组传递。Call a callback with an array of parameters call_user_func — 调用用户定义的函数,传递一个参数,且参数为非引用。Call the callback given by the first parameter create_function — 创建一个匿名函数。 Create ...

    阅读全文
  8. 解析HTML的需求很常见,图中为常见的解析解基本概况,可以做简单比较和选择参考。不分排名,按实现语言分组。 有人问如何选择一个最适合以下需求的HTML JAVA解析器: 成熟的产品,bug相比比较少 仍在维护中的产品 快速开发,使用简单高效 有人推荐结论为: 如果你想使用一个基于XML的工具来遍历HTML,那么推荐: JTidy. 如果你想做HTML单元测试,那么推荐: HtmlUnit 如果你想从HTML中抓取 ...

    阅读全文
  9. 49870

    如何定义metadata 值属性:PropertyTable Property用以描述一个结点的属性,如 Name API Name Description visible includeCharacters MaxLength Max System Length Order Required Available for xxx(Subscribe) Enable for xxx(Search Criteria) At ...

    阅读全文
  10. 在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/ ...

    阅读全文
  11. 在Fiddler官网有很多视频介绍。可以有空看看听听。   http://www.telerik.com/download/fiddler  ...

    阅读全文
  12. 网页title滚动效果是实现其实就是通过js来定期修改title。 如网上的示例: <html> <head> <title>滚动的文字在TITLE栏上不停滚动</title><script language=javascript > var text=document.title var timerID function newtext() { clearTimeout(timerID) document ...

    阅读全文
  13. Apache Common Logging(JCL)简介可以参考官网的用户手册。 官方User Guide文档入口: http://commons.apache.org/proper/commons-logging/guide.html JCL简介: Jakarta Commons Logging (JCL)提供的是一个日志(Log)接口(interface),同时兼顾轻量级和不依赖于具体的日志实现工具。它提供给中间件/日志工具开发者一个简单的日志操作抽象,允许程 ...

    阅读全文
  14. Apache Artistic APSL BSD GNU GPL GNU LGPL ISC MIT MPL 共享源代码 zlib FSF批准许可证列表 ...

    阅读全文
  15. Apache Subversion是一个功能强大的版本控制系统(version control system)。设计初衷是希望成为更好的CVS。 Apache Subversion有很多“代名词“,简写SVN。这些代名词实质上就是不同的第三方提供的build。如 Windows下的build有 CollabNet (supported and certified by CollabNet; requires registration) SlikSVN ( ...

    阅读全文
  16. 下载ECLIPSE-PHP 使用ECLIPSE创建PHP PROJECT,带来全新的PHP PROJECT 架构理念 查询PHAR相关知识 http://www.ibm.com/developerworks/cn/opensource/os-php-5.3new4/ http://www.php.net/manual/zh/wrappers.phar.php Eclipse PHP 用eclipse开发php 参考文档: http://blog.csdn. ...

    阅读全文
  17. ant官方文档:http://ant.apache.org/manual/index.html  filter: Sets a token filter for this project, or reads multiple token filters from a specified file and sets these as filters. Token filters are used by all tasks that perform file-copying op ...

    阅读全文
  18. PHP Fatal error:  Call to undefined function imagettftext() in 这个错误主要是因为在使用function imagettftext()时找不到定义的字体位置。简单的解决办法就是正确设置字体路径。PHP官方也有个提议就是将字体和script放置在相同路径。 “In many cases where a font resides in the same directory as the scri ...

    阅读全文
  19. 学习Android的hello Android时,遇到一个主题相关的错误如下: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.soosmart.hellomobile/com.soosmart.hellomobile.AboutActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat the ...

    阅读全文
  20. js压缩工具2014-06-28

    最常用的压缩工具有: YUI Compressor Google Closure Compiler(压缩率比较高), 具体请参考: http://blog.csdn.net/borishuai/article/details/8477514 UglifyJS (UglifyJS的出名是由于它代替Closure Compiler成为jQuery项目的压缩工具。) YUI Compressor 下载地址: ...

    阅读全文