this 一开始看的昏头昏脑的,baidu就是一堆ctrl+v 的东西,
this? the calling object
要义一: calling
要义二: object
<script type="text/javascript" src="../bootstrap.js"></script>
<script type="text/javascript" src="../locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript">
Ext.define('father1',{
constructor:function(){
var me=this;
alert('father1 constructor');
}
})
Ext.define('son',{
extend:'father1',
app:'hello world',
test:function(){
alert('son1');
}
});
var inson;
Ext.onReady(function () {
inson=new son();
});
</script>
father1 alert 前打上断点进行调试
*注意--> app


被折叠的 条评论
为什么被折叠?



