Exception Sample:
Ext.define('NewClass', {
constructor: function() {
throw new Error('[' + Ext.getDisplayName(arguments.callee) + '] constructor Error');
return this;
}
});
var A1 = Ext.create('NewClass', 'A1');
用Google Chrome程式開發工具查看Exception顯示結果:
Ext.define('NewClass', {
constructor: function() {
throw new Error('[' + Ext.getDisplayName(arguments.callee) + '] constructor Error');
return this;
}
});
var A1 = Ext.create('NewClass', 'A1');
沒有留言:
張貼留言