生成项目
sencha -sdk C:\apache-tomcat-7.0.62\webapps\touch-2.4.2 generate app app D:\ideawork\stapp\app
controllers:
refs
control
routes
before
编译: sencha app build native 打包
sencha app build -run native 打包并安装运行
cordova命令:
安装 npm install -g cordova
创建项目:cordova create hello com.example.hello HelloWorld
添加平台:
$ cd hello
$ cordova platform add ios
$ cordova platform add amazon-fireos
$ cordova platform add android
$ cordova platform add blackberry10
$ cordova platform add firefoxos
平台列表: $ cordova platforms ls
删除平台:
$ cordova platform remove blackberry10
$ cordova platform rm amazon-fireos
$ cordova platform rm android
升级平台
cordova platform update android
$cordova platform update
[email protected]
编译:
$ cordova build
$ cordova build ios
$ cordova prepare ios
$ cordova compile ios
运行:
$ cordova run android
安装插件
Basic device information (Device API):
$ cordova plugin add cordova-plugin-device
Network Connection and Battery Events:
$ cordova plugin add cordova-plugin-network-information
$ cordova plugin add cordova-plugin-battery-status
Accelerometer, Compass, and Geolocation:
$ cordova plugin add cordova-plugin-device-motion
$ cordova plugin add cordova-plugin-device-orientation
$ cordova plugin add cordova-plugin-geolocation
Camera, Media playback and Capture:
$ cordova plugin add cordova-plugin-camera
$ cordova plugin add cordova-plugin-media-capture
$ cordova plugin add cordova-plugin-media
Access files on device or network (File API):
$ cordova plugin add cordova-plugin-file
$ cordova plugin add cordova-plugin-file-transfer
Notification via dialog box or vibration:
$ cordova plugin add cordova-plugin-dialogs
$ cordova plugin add cordova-plugin-vibration
Contacts:
$ cordova plugin add cordova-plugin-contacts
Globalization:
$ cordova plugin add cordova-plugin-globalization
Splashscreen:
$ cordova plugin add cordova-plugin-splashscreen
Open new browser windows (InAppBrowser):
$ cordova plugin add cordova-plugin-inappbrowser
Debug console:
$ cordova plugin add cordova-plugin-console
插件列表:
$ cordova plugin ls
删除插件:
$ cordova plugin rm cordova-plugin-console
$ cordova plugin remove cordova-plugin-console
chrome真机调试:
chrome://inspect/#devices
其实很简单, 正文字体 用87%的黑色,负正文用54%的黑色,提示用27%的黑色, 纯黑色用来当字体颜色 太硬了