nativescript 您的第一个Hello World程序
示例
$ mkdir hello-world $ cd hello-world $ tns create hello-world --ng $ tns platform add android #You can only add ios on an OSX machine
然后确保已连接设备或正在运行仿真器(如果未运行,则应启动默认仿真器,否则将引发错误。我建议genymotion用于android)。
$ tns run android
如果要使用默认的Android模拟器,请添加该--emulator标志。
从tns2.5开始,livesync现在是的默认操作tnsrun<platform>,当您保存文件更改时,它将自动重新编译。这可以大大缩短开发时间,但是,如果对插件进行了更改,则需要正确地重新编译。
热门推荐
10 儿子立冬祝福语简短独特
11 对当兵的祝福语简短
12 侄儿高考试祝福语简短
13 伴郎红包祝福语朋友简短
14 媳妇生日简短祝福语朋友
15 公司年会祝福语简短最好
16 元旦感恩祝福语简短大全
17 红包祝福语简短10字
18 周六早晨祝福语简短