pic.js
来自「仿3721模块拖拽移动层移动的javascript」· JavaScript 代码 · 共 28 行
JS
28 行
var Pic = Class.create();
Pic.prototype = {
initialize : function () {
var wc = this;
wc.parent = null;
wc.ajax = new CDrag.Ajax;
},
edit : function (o) {
alert(o.title.innerHTML);
},
load : function (json) {
var wc = this;
wc.parent.content.innerHTML = '<img width="180" height="100" alt="" src="' + json + '" \/>';
},
open : function () {
var wc = this, ajax = wc.ajax;
wc.parent.content.innerHTML = "loading";
ajax.send("Pic.asp?", wc.load.bind(wc));
}
};
Pic.loaded = true;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?