摘要: var Class = {}; //定义一个类Class.Name = "类的属性"; //类的属性Class.Hello = function () { alert("类的方法调用" + Class.Name); } //类的方法Class.Users = {}; //定义它的子类Class.Users.Hello = function () { alert("类中的子类对象的方法"); } //子类的方法//方法Hello()其实本实也是一个类对象,我们可以用new Class.Hello()来创建它的实例//prototype在 阅读全文
posted @ 2011-07-26 11:59 张占岭 阅读(1114) 评论(0) 推荐(0)
摘要: var box = $("#js_start_box"); if ($.trim(box.html()) == "") {box.html('<ul><li rel="set_home"><i class="menu-set-homepage"></i>设为主页</li> <li rel="add_mark"><i class="menu-add-fav"></i>添加到收 阅读全文
posted @ 2011-07-26 11:39 张占岭 阅读(480) 评论(2) 推荐(0)
摘要: var Page_INIT = function () { $(document).bind("mouseover", function (e) {//鼠标移入 if (e.target.tagName.toUpperCase() == "INPUT") { var input = e.target; if (input.type == "text") {//如果是文本框 if (window.Page_FocusTimer) {//如果处于焦点状态 window.clearTimeout(window.Page_FocusTimer 阅读全文
posted @ 2011-07-26 11:10 张占岭 阅读(1767) 评论(0) 推荐(0)