码迷,mamicode.com
首页 > 其他好文 > 详细

NativeScript简介和试用

时间:2015-03-18 15:58:07      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:

NativeScript是一款使用JavaScript语言来构建跨平台原生移动应用的开源框架,支持iOS、Android和Windows Phone。且NativeScript的使用没有过多繁杂的要求,只需使用自己已经掌握的JavaScript和CSS技能就能开发出真正具有原生用户体验的移动应用。

http://www.telerik.com/nativescript

其中一个简单todo应用的代码 https://github.com/NativeScript/sample-Tasks

1,代码主要构成是css,js和xml(界面)(不知道介绍为什么不提xml,看代码才知道,一般人都以为会是html了)

2,需要下载专用的开发工具Telerik AppBuilder,并clone项目

The easiest way to start playing with the sample is to get the clone URL (https://github.com/NativeScript/sample-Tasks.git) and open the project inside Telerik AppBuilder. Then you are one click away from deploy the running app on your device.

https://platform.telerik.com/#downloads/appbuilder-nativescript

3,有个文件夹tns_modules是专门用来调用移动设备功能的

http://docs.nativescript.org/modules.html

例如调用照相机的功能

http://docs.nativescript.org/ApiReference/camera/HOW-TO.html

4,AppBuilder-run-build打包程序

生成二维码获取程序包,android可以了,可是ios不行(我的ios版本低,要求android4.2或ios7.1以上)

http://docs.nativescript.org/index.html


NativeScript简介和试用

标签:

原文地址:http://blog.csdn.net/superjunjin/article/details/44409717

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!