Sencha Touch 2.3.2和2.4.0在安卓2.3上面用会报错,具体报错信息如下:
解决办法是:
打开文件:你的file:///android_asset/www/sencha-touch-all-debug.js
找到第76728行:
if (Ext.feature.has.Touch) { // bind handlers that are only invoked when the browser has touchevents me.onTargetTouchMove = me.onTargetTouchMove.bind(me); me.onTargetTouchEnd = me.onTargetTouchEnd.bind(me); }
改成:
if (Ext.feature.has.Touch) { // bind handlers that are only invoked when the browser has touchevents me.onTargetTouchMove = Ext.Function.bind(me.onTargetTouchMove, me); me.onTargetTouchEnd = Ext.Function.bind(me.onTargetTouchEnd, me); }
这样就可以测试成功了。