element.js
来自「用最近的dojo1.2.1制作前端的ajax购书网站」· JavaScript 代码 · 共 54 行
JS
54 行
/* Copyright (c) 2004-2008, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details*/if(!dojo._hasResource["dojox.charting.Element"]){dojo._hasResource["dojox.charting.Element"]=true;dojo.provide("dojox.charting.Element");dojo.declare("dojox.charting.Element",null,{constructor:function(_1){this.chart=_1;this.group=null;this.htmlElements=[];this.dirty=true;},createGroup:function(_2){if(!_2){_2=this.chart.surface;}if(!this.group){this.group=_2.createGroup();}return this;},purgeGroup:function(){this.destroyHtmlElements();if(this.group){this.group.clear();this.group.removeShape();this.group=null;}this.dirty=true;return this;},cleanGroup:function(_3){this.destroyHtmlElements();if(!_3){_3=this.chart.surface;}if(this.group){this.group.clear();}else{this.group=_3.createGroup();}this.dirty=true;return this;},destroyHtmlElements:function(){if(this.htmlElements.length){dojo.forEach(this.htmlElements,dojo._destroyElement);this.htmlElements=[];}},destroy:function(){this.purgeGroup();}});}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?