test.js
来自「原名JSPackager」· JavaScript 代码 · 共 27 行
JS
27 行
/**
* @public
*/
function Test(){
}
Test.prototype = new Decorator();
Test.prototype.before = function(){
try{
var e = this.getContainer();
//alert(this.id)
e.appendChild(document.createTextNode("before:"+this.id));
e.insertBefore(document.createTextNode("before:"+this.id),e.firstChild);
//e.innerHTML = "";//"before:"+this.id
}catch(ex){
alert(ex.message);
}
}
Test.prototype.decorate = function(){
var e = this.getContainer();
try{
e.appendChild(document.createTextNode("after:"+this.id));
}catch(ex){
alert(ex)
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?