webpage.js
来自「一个EXT可输入下拉框的程序。不清楚的可以下载来看。」· JavaScript 代码 · 共 43 行
JS
43 行
Ext.ns('WebPage'); WebPage = function(config) { Ext.apply(this, config, { autoRender:true ,autoTitle:true ,langCombo:false ,ctCreate:{tag:'div', id:'ct-wrap', cn:[{tag:'div', id:'ct'}]} }); if(this.autoRender) { this.render(); }};Ext.override(WebPage, { render:function() { var body = Ext.getBody(); var dh = Ext.DomHelper; // create wrap and container this.wrap = dh.insertFirst(body, this.ctCreate, true); this.ct = Ext.get('ct'); if(this.width) { this.ct.setWidth(this.width); } this.center = dh.append(this.ct, {tag:'div', id:'center'}, true); // theme select combo 主题 //var themeCt = this.north.createChild({tag:'div', id:'themect', cls:'x-hidden'}); //this.themeCombo = new Ext.ux.ThemeCombo({ // renderTo:themeCt //,width:themeCt.getWidth() //}); if(this.centerContent) { this.center.appendChild(this.centerContent); this.centerContent = Ext.get(this.centerContent).removeClass('x-hidden'); } }});
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?