class Test {}$obj = new Test;一、__construct() {}
构造函数二、__destroy() {} 析构函数三、__get() {} 试图读取一个并不存在的属性时,调用此函数。四、__set() {}
试图写入一个并不存在的属性时,调用此函数。五、__call(...
分类:
Web程序 时间:
2014-05-24 04:08:50
阅读次数:
286
1. 标签处理类 1 public class MyReferer extends
BodyTagSupport { 2 private String site; 3 private String back; 4 public String
getSite() { 5 ...
分类:
其他好文 时间:
2014-05-24 03:54:31
阅读次数:
252
char*itoa(intvalue,char*string,intradix);int value
被转换的整数,char *string 转换后储存的字符数组,int radix 转换进制数,如2,8,10,16 进制等头文件:
atof(将字符串转换成浮点型数)atoi(将字符串转换成整型数)...
分类:
其他好文 时间:
2014-05-24 03:40:06
阅读次数:
232
strip_tags 去掉 HTML 及 PHP 的标记。 语法: string
strip_tags(string str); 传回值: 字串 函式种类: 资料处理 内容说明 本函式可去掉字串中包含的任何 HTML 及 PHP
的标记字串。若是字串的 HTML 及 PHP 标签原来就有错,例如.....
分类:
Web程序 时间:
2014-05-24 03:14:26
阅读次数:
351
1、Server.MapPath(string path)简介
Server.MapPath(string
path)作用是返回与Web服务器上的指定虚拟路径相对应的物理文件路径。其参数path为Web服务器的虚拟路径,返回结果是与path相对应的物理文件路径2、获取指定目录下的所有文件Syste....
分类:
其他好文 时间:
2014-05-24 03:07:13
阅读次数:
340
package Pro0519;import java.util.Arrays;public
class pro0519 { public static void main(String[] args) { String[] ar_str1,
ar_str2; ...
分类:
其他好文 时间:
2014-05-24 02:22:06
阅读次数:
202
题目链接Given a string, find the length of the
longest substring without repeating characters. For example, the longest
substring without repeating letter...
分类:
其他好文 时间:
2014-05-24 02:15:57
阅读次数:
291
QThread类提供了一个平台无关的方式来管理线程。
一个QThread对象在程序控制中管理一个线程。线程在run()中开始执行。默认情况下,run()通过调用exec()启动事件循环并在线程里运行一个Qt的事件循环。
可以使用worker-object通过QObject::move...
分类:
其他好文 时间:
2014-05-24 01:52:21
阅读次数:
237
1.
点击某个图标,只有点击左半边有效(左半边是一个链接,右半边是一个div),click()选中的是元素的中间位置。用以下方法可解决Actions action =
new Actions(view); //X,Y坐标是从元素的左上角开始的 action.moveToEleme...
分类:
其他好文 时间:
2014-05-24 01:47:12
阅读次数:
233
Reverse digits of an integer. Example1: x =
123, return 321 Example2: x = -123, return –321 这道题应该不用详细说了。比较简单。唯一的是要注意特殊值0.
public class Solution { publ...
分类:
其他好文 时间:
2014-05-24 01:39:59
阅读次数:
170