1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
| define([
| // './CacheHelper',
| // './ChartGraphic',
| // 'esri/layers/FeatureLayer',
| // 'dojo/aspect',
| 'dojo/_base/declare'
| // , 'dojo/_base/lang', 'dojo/_base/array', 'dojo/_base/html',
| // 'dojo/topic', 'dojo/Deferred', 'dojo/on'
| ,
| './echarts.min'
| ], function(
| // CacheHelper,
| // ChartGraphic,
| // g,
| // aspect,
| declare
| // , lang, arrayUtils, html, topic, Deferred, on
| ,
| echarts
| ) {
| return declare(null, {
| constructor: function (url, options) {
| },
| show: function (JieShouContent) {
| alert("hello.")
| }
| });
| });
|
|
| // define([
| // 'dojo/_base/declare',
| // 'esri/layers/FeatureLayer'
| // ], function(declare,
| // FeatureLayer
| // ) {
| // var clazz;
| // clazz = declare("TestCharts", null, {
| // constructor: function (url, options) {
| // },
| // show: function (JieShouContent) {
| // alert("hello.")
| // }
| // });
| // clazz.getInstance = function() {
| // if (instance === null) {
| // instance = new clazz();
| // }
| // return instance;
| // };
| // return clazz;
| // });
|
|