st+cordova 常用命令

生成项目

sencha-sdkC:\apache-tomcat-7.0.62\webapps\touch-2.4.2generateappappD:\ideawork\stapp\app

controllers:

refs

control

routes

before

编译:senchaappbuildnative打包

senchaappbuild-runnative打包并安装运行

cordova命令:

安装npminstall-gcordova

创建项目:cordovacreatehellocom.example.helloHelloWorld

添加平台:

$cdhello

$cordovaplatformaddios

$cordovaplatformaddamazon-fireos

$cordovaplatformaddandroid

$cordovaplatformaddblackberry10

$cordovaplatformaddfirefoxos

平台列表:$cordovaplatformsls

删除平台:

$cordovaplatformremoveblackberry10

$cordovaplatformrmamazon-fireos

$cordovaplatformrmandroid

升级平台

cordovaplatformupdateandroid

[email protected]

编译:

$cordovabuild

$cordovabuildios

$cordovaprepareios

$cordovacompileios

运行:

$cordovarunandroid

安装插件

Basicdeviceinformation(DeviceAPI):

$cordovapluginaddcordova-plugin-device

NetworkConnectionandBatteryEvents:

$cordovapluginaddcordova-plugin-network-information

$cordovapluginaddcordova-plugin-battery-status

Accelerometer,Compass,andGeolocation:

$cordovapluginaddcordova-plugin-device-motion

$cordovapluginaddcordova-plugin-device-orientation

$cordovapluginaddcordova-plugin-geolocation

Camera,MediaplaybackandCapture:

$cordovapluginaddcordova-plugin-camera

$cordovapluginaddcordova-plugin-media-capture

$cordovapluginaddcordova-plugin-media

Accessfilesondeviceornetwork(FileAPI):

$cordovapluginaddcordova-plugin-file

$cordovapluginaddcordova-plugin-file-transfer

Notificationviadialogboxorvibration:

$cordovapluginaddcordova-plugin-dialogs

$cordovapluginaddcordova-plugin-vibration

Contacts:

$cordovapluginaddcordova-plugin-contacts

Globalization:

$cordovapluginaddcordova-plugin-globalization

Splashscreen:

$cordovapluginaddcordova-plugin-splashscreen

Opennewbrowserwindows(InAppBrowser):

$cordovapluginaddcordova-plugin-inappbrowser

Debugconsole:

$cordovapluginaddcordova-plugin-console

插件列表:

$cordovapluginls

删除插件:

$cordovapluginrmcordova-plugin-console

$cordovapluginremovecordova-plugin-console

chrome真机调试:

chrome://inspect/#devices

其实很简单,正文字体用87%的黑色,负正文用54%的黑色,提示用27%的黑色,纯黑色用来当字体颜色太硬了