摘要: ed2k://|file|zh-hans_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-74070.iso|630237184|EC51916C9D9B8B931195EE0D6EE9B40E|/ 阅读全文
posted @ 2013-01-31 14:54 simpman 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 以前忽略的函数。今天看t.qq.com开发接口,发现了。1、http_build_query($params);2、parse_str($r, $out);curl用于向服务器发送http(s)请求。 1 /** 2 * HTTP请求类 3 * @author xiaopengzhu <xp_zhu@qq.com> 4 * @version 2.0 2012-04-20 5 */ 6 class Http 7 { 8 /** 9 * 发起一个HTTP/HTTPS的请求10 * @param $url 接口的URL 11 * @param $para... 阅读全文
posted @ 2013-01-28 18:11 simpman 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 经过测试其中匹配双字节字符(包括汉字在内):[^\x00-\xff]非常好用推荐一下两外推荐个网址http://mscenter.edu.cn/blog/yongsheng/archive/2004/11/19/308.html这个家伙收录的正则很多,呵呵关键字:正则表达式 模式匹配 Javascript摘要:收集一些常用的正则表达式。正则表达式用于字符串处理,表单验证等场合,实用高效,但用到时总是不太把握,以致往往要上网查一番。我将一些常用的表达式收藏在这里,作备忘之用。本贴随时会更新。匹配中文字符的正则表达式: [\u4e00-\u9fa5]匹配双字节字符(包括汉字在内):[^\x00-\ 阅读全文
posted @ 2013-01-28 18:02 simpman 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 8.1 navigator对象bom提供的最早对象之一,提供了浏览器的信息属性。8.2 检测浏览器的方式 一般有两种检测方式:1、对象/特征检测 2、user-agent字符串检测。8.2.1对象/特征检测法 对象检测涉及到,在使用一个给定对象之前要先检查它的存在。例如要使用DOM方法document.getElementById(),但不确定浏览器是不是支持它。if(document.getElementById){ //the method exists, so use it here}else{ // do something else}如果属性或方法不存在就会返回undefined。B 阅读全文
posted @ 2013-01-26 12:09 simpman 阅读(241) 评论(0) 推荐(0) 编辑
摘要: STEVE EMBER: Welcome to THE MAKING OF A NATION – American history in VOA Special English. I'm Steve Ember.This week in our series, we continue the story of the presidency of Ronald Reagan.(MUSIC)Soon after his presidency began, there was an attempt on his life. A gunman shot President Reagan in 阅读全文
posted @ 2013-01-25 08:47 simpman 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 在设计网页模板时,经常要用CSS来控制块级元素的水平或是垂直位置,往往需要进行居中的操作。今天我就和大家一起来研究下如何用CSS来控制元素的居中。1、单行垂直居中文字在层中垂直居中vertical-align属性是做不到的.我们这里有个比较巧妙的方法就是:设置height的高度与line-height的高度相同!<divstyle="line-height:500px;height:500;"></div>2、层水平居中设置div的宽度小于父div的宽度,设置margin:0auto;,即可让div居中。#parentdiv{width:500px; 阅读全文
posted @ 2013-01-23 15:14 simpman 阅读(1420) 评论(0) 推荐(0) 编辑
摘要: I’m Shirley Griffith.And I’m Christopher Cruise with EXPLORATIONS in VOA Special English. Today we tell about two areas that are popular with visitors to the United States. One is a place of fierce beauty. It is Mount Rainier National Park in the northwestern state of Washington. The other is one of 阅读全文
posted @ 2013-01-23 09:51 simpman 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 7、正则表达式7.1正则表达式支持javascript对正则表达式的支持是通过ECMAScript的RegExp类实现的。RegExp对象的构造函数可以有一个或两个参数。 第一个秒速了要进行匹配的模式字符串,第二参数制定了额外命令。var reCat = new RegExp("cat");var reCat = new RegExp("cat","gi"); g为global缩写,要匹配字符串中所有cat。i不区分大小写。perl风格的语法var reCat = /cat/gi;创建regexp后,regexp 和 String对一 阅读全文
posted @ 2013-01-22 18:23 simpman 阅读(278) 评论(0) 推荐(0) 编辑
摘要: http://xinxindai.com/xxd/other/fee.jsp 阅读全文
posted @ 2013-01-22 12:34 simpman 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 要访问<html/>元素可以使用document的特性var oHtml = document.documentElement;要取得<head/>和<body/>元素,可以用下面实现:var oHead = oHtml.firstChild;var oBody = oHtml.lastChild;也可以使用childNodes特性来完成相同的工作。var oHead = oHtml.childNodes[0];var oBody = oHtml.childNodes[1];你还可以通过childNodes.length特性来获取子节点数量。alert(oH 阅读全文
posted @ 2013-01-22 01:04 simpman 阅读(204) 评论(0) 推荐(0) 编辑