首页 > Web开发 > 详细

ExtJS MVC的搭建(一)

时间:2014-08-01 12:58:51      阅读:419      评论:0      收藏:0      [点我收藏+]

     ExtJS是一种主要用于创建前端用户界面的ajax框架。本案例引入的是extjs4.2的开发包。结构为:

       bubuko.com,布布扣

 其中app文件是新建的,并在此文件下建MVC的文件夹。每个ExtJS4应用以一个application 类开始。下面为app.js和index.html的文件:

app.js:

Ext.application({
requires:[‘Ext.container.Container‘],
name:‘FLY‘,

appFolder:‘app‘,
controllers:[‘Mycontroller‘],
autoCreateViewport: true

});

index.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>welcome to my place!!</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css">

<script type="text/javascript" src="ext/ext-all.js"></script>
<script type="text/javascript" src="ext/ext-lang-zh_CN.js"></script>

<script type="text/javascript" src="app/app.js"></script>

</head>

<body>
</body>
</html>

ExtJS MVC的搭建(一),布布扣,bubuko.com

ExtJS MVC的搭建(一)

原文:http://www.cnblogs.com/feiger/p/3884436.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!