摘要:
public class ReflectPoint { private int x; public int y; public String str1 = "ball"; public String str2 = "basketball"; public String str3 = "itcast"; public ReflectPoint(int x, int y) { super(); this.x = x; this.y = y; } public int getX() { ... 阅读全文
摘要:
<html> <head> <script language="javascript"> //定义一个工具"类"(方法),提供具体实现方法,将被很多“类”调用,this将会被使用call或者是apply方法替换——这也是call和apply方法的目的,更换对象function Utils(){ this.name = "huangbiao"; this.getArgumentsLength = function(str){ return arguments.length; } this.getDat 阅读全文
摘要:
/* * myjquery 0.1 - Javascript * * Copyright (c) 2011 zhuwei * * $Date: 2011-04-20$ */ var idExpr = /^#([\w-]+)$/; var singExpr = /^.\s+.$/; var toLower = Object.prototype.toLowerCase; var agent = navigator.userAgent.toLowerCase(); var $ = myjquery = window.$ = window.myjquery = function(selector, c 阅读全文