Ext.create('Ext.Button',{
text:'Click me',
renderTo:Ext.getBody(),
handler:function(){
alert('You clicked the button!')
}
});
这段代码应该怎么用呢?谁能给出一个完整的做法?
text:'Click me',
renderTo:Ext.getBody(),
handler:function(){
alert('You clicked the button!')
}
});
这段代码应该怎么用呢?谁能给出一个完整的做法?
<script>
Ext.onReady(function() {
Ext.create('Ext.Button',{
text:'Click me',
renderTo:Ext.getBody(),
handler:function(){
alert('You clicked the button!')
}
});
});
</script>
copy到html里就可以了。