App.js 是一个轻量级的 JavaScript UI 库,用来创建移动的 Web 应用,应用的外观跟原生的应用相同,性能也近乎一致。
特点:
-
跨平台,支持 Android 2.2+ 和 iOS 4.3+
-
Widgets 和自定义主题
-
页面调整管理
基本页面框架:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!
DOCTYPE
html>
<
html
>
<
head
>
<
title
>My App</
title
>
<
meta
name
=
"viewport"
content="
width
=
device
-width,
initial-scale
=
1
.0,
maximum-scale
=
1
.0,
user-scalable
=
no
,
minimal-ui">
<
link
rel
=
"stylesheet"
href
=
"//cdn.kik.com/app/2.0.1/app.min.css"
>
<
style
>
/* put your styles here */
</
style
>
</
head
>
<
body
>
<!-- put your pages here -->
<
script
src
=
"//zeptojs.com/zepto.min.js"
></
script
>
<
script
src
=
"//cdn.kik.com/app/2.0.1/app.min.js"
></
script
>
<
script
>
/* put your javascript here */
</
script
>
</
body
>
</
html
>
|