var Class = {
create: function () {
return function () {
this.initialize.apply(this, arguments);
};
}
};
Object.extend = function (a, c) {
for (var b in c) {
a[b] = c[b];
}
return a;
};var Client = OtherClient;
Client = Class.create();
Object.extend(Client.prototype, {
name: "Hotel",
InDays: 20,
afterDays: 180
});这种写法是什么意思???
create: function () {
return function () {
this.initialize.apply(this, arguments);
};
}
};
Object.extend = function (a, c) {
for (var b in c) {
a[b] = c[b];
}
return a;
};var Client = OtherClient;
Client = Class.create();
Object.extend(Client.prototype, {
name: "Hotel",
InDays: 20,
afterDays: 180
});这种写法是什么意思???
解决方案 »
- jquery的一个问题,
- 动易模板
- 大难题来了! 有什么办法通过JavaScript实现实时的语法高亮显示?
- 用js实现对多个div的z-index的调整
- 想要实现滚动菜单的功能,但是......
- [原创]批量(模拟)美化+可修改select兼容版控件演示及下载(兼容IE6.0, Mozilla Firefox1.5, Opera9.0)
- 请问高手这段代码的问题,谢谢!在线等…
- 怎样隐藏一个打开的窗口
- 唉,,为2:0放送200分........
- 请问如何在js里面实现vbs里面的trim函数功能!
- 求一个JS。主要是用来在导航上做点击后背景图片停留
- 【分享】JavaScript版变速齿轮(纯JS/CSS实现)
var Class = {
create: function() {
return function() {
this.initialize.apply(this, arguments);
};
}
};
Object.extend = function(a, c) {
for (var b in c) {
a[b] = c[b];
}
return a;
};
var Client = Class.create();
Object.extend(Client.prototype, {
name: "Hotel",
InDays: 20,
afterDays: 180
});
alert(Client.prototype.name); //弹出Hotel