《Flickr Finder应用开发指南》
1. 组件化开发的优势
在构建应用程序时,将其拆分为多个组件是一种高效的开发方式。如果构建一个整体式应用,需要在代码中寻找并提取零散的部分,然后在新应用中重新组装,这将是一个缓慢且痛苦的过程。而通过按功能分离组件,可以更轻松地在项目之间重用代码。
2. 搭建基础
在构建应用之前,需要设置一个HTML文件,该文件将链接到其他文件,并作为应用的整体容器。以下是基础HTML文件的代码:
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Flickr Findr</title>
<meta name="viewport" content="width=device-width, user-scalable=no,
initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" href="apple-touch-icon.png" />
<link rel="stylesheet" href="lib/resources/css/sencha-touch.css"
超级会员免费看
订阅专栏 解锁全文
105

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



