| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 575 人关注过本帖
标题:一段JS代码的注释
只看楼主 加入收藏
luo007nan
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2009-4-20
结帖率:50%
收藏
已结贴  问题点数:10 回复次数:1 
一段JS代码的注释
fx.Layout = Class.create();         // 为 fx 增加 Layout 属性
fx.Layout.prototype = Object.extend(new fx.Base(), {    // 为Layout 增加
    initialize: function(el, options) {
        this.el = $(el);
        this.el.style.overflow = "hidden";
        this.iniWidth = this.el.offsetWidth;
        this.iniHeight = this.el.offsetHeight;
        this.setOptions(options);
    }
});
fx.Height = Class.create();
Object.extend(Object.extend(fx.Height.prototype, fx.Layout.prototype), {   
    increase: function() {
        this.el.style.height = this.now + "px";
    },

    toggle: function() {
        if (this.el.offsetHeight > 0) this.custom(this.el.offsetHeight, 0);
        else this.custom(0, this.el.scrollHeight);
    }
});
----------------------------------
忘大家帮看看 写在注释
搜索更多相关主题的帖子: 注释 代码 
2010-04-08 10:04
work001
Rank: 3Rank: 3
等 级:禁止访问
帖 子:76
专家分:114
注 册:2010-4-9
收藏
得分:10 
怎么了,有什么问题吗
2010-04-09 16:20
快速回复:一段JS代码的注释
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.013495 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved