详情请看:http://dev.sencha.com/deploy/ext-4.0.7-gpl/docs/index.html#!/guide/getting_started
1.Download Ext JS 4 SDK http://www.sencha.com/products/extjs/,解压,把用到的包放在web root directory下。
2.在页面index.html,
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">
<script type="text/javascript" src="extjs/ext-debug.js"></script>这两个是必须要引入的,然后可以使用ExtJS了。
3.新建一个js文件,在其中写入代码:
Ext.application({
name: 'HelloExt',
launch: function() {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{
title: 'Hello Ext',
html : 'Hello! Welcome to Ext JS.'
}
]
});
}
});
在页面index.html 中,引入文件,然后运行,即可。
1.Download Ext JS 4 SDK http://www.sencha.com/products/extjs/,解压,把用到的包放在web root directory下。
2.在页面index.html,
<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">
<script type="text/javascript" src="extjs/ext-debug.js"></script>这两个是必须要引入的,然后可以使用ExtJS了。
3.新建一个js文件,在其中写入代码:
Ext.application({
name: 'HelloExt',
launch: function() {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{
title: 'Hello Ext',
html : 'Hello! Welcome to Ext JS.'
}
]
});
}
});
在页面index.html 中,引入文件,然后运行,即可。