Sencha Touch Charts 1 是否与 Sencha Touch 2 兼容?
例如
我希望这是在一个 html 中(../touch
Sencha Touch 2 版本在哪里):
<title>Simple Animation with Sprites</title>
<script type="text/javascript" src="../touch-charts/sencha-touch-debug.js"></script>
<script type="text/javascript" src="../touch-charts/touch-charts-debug.js"></script>
<script type="text/javascript" src="app.js"></script>
并app.js
包含:
Ext.application({
name: 'Animation',
requires: [
'Ext.draw.Component'
],
launch: function() {
var titleVisible = false;
var drawComponent = new Ext.draw.Component({
items: [{
type: 'circle',
fill: '#EECC00',
radius: 100,
x: 200,
y: 200
}]
});
Ext.Viewport.add({
xtype: 'panel',
id: 'panel-container',
fullscreen: true,
layout: fit,
items: [drawComponent]
});
drawComponent.surface.renderFrame();
}
});
可能会给我一个圈子。
相反,我在第 339 行得到一个异常,touch-charts-debug.js
指出Ext.util.Observable
不存在。
这是否意味着 Charts 1 与 Touch 2 不兼容?