📄 dimension.js
字号:
/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) xio.name 2006</p> * @author xio */function Dimension(width, height) { this.width; this.height; if (width) { this.width = width; } if (height) { this.height = height; }}Dimension.prototype.toString = function () { return "[Dimension]";};Dimension.prototype.getHeight = function () { return this.height;};Dimension.prototype.getWidth = function () { return this.width;};Dimension.prototype.getSize = function () { return this;};Dimension.prototype.setHeight = function (height) { if (height) { this.height = height; }};Dimension.prototype.setWidth = function (width) { if (width) { this.width = width; }};Dimension.prototype.setSize = function (width, height) { if (width) { this.width = width; } if (height) { this.height = height; }};Dimension.prototype.toString = function () { return "[width=" + this.width + ",height=" + this.height + "]";};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -