zoukankan      html  css  js  c++  java
  • cordova常用资料源


    cordova的中文资料
    https://github.com/CordovaCn/CordovaCn

    官方文档:

    http://cordova.apache.org/docs/en/latest/


    E:MyApp01MyApp>cordova create hello com.example.hello HelloWorld
    E:MyApp01MyApp>cordova platform add ios --save
    E:MyApp01MyApp>cordova platform add android --save
    E:MyApp01MyApp>cordova platform ls
    Installed platforms:
    android 5.1.1
    browser 4.1.0
    ios 4.1.0
    Available platforms:
    amazon-fireos ~3.6.3 (deprecated)
    blackberry10 ~3.8.0
    firefoxos ~3.6.3
    webos ~3.7.0
    windows ~4.3.1
    wp8 ~3.8.2 (deprecated)

    ----------------------------------------------------------------------
    E:MyApp01MyApp>cordova -help
    Synopsis

    cordova command [options]

    Global Commands
    create ............................. Create a project
    help ............................... Get help for a command

    Project Commands
    info ............................... Generate project information
    requirements ....................... Checks and print out all the requirements
    for platforms specified

    platform ........................... Manage project platforms
    plugin ............................. Manage project plugins

    prepare ............................ Copy files into platform(s) for building
    compile ............................ Build platform(s)
    clean .............................. Cleanup project from build artifacts

    run ................................ Run project
    (including prepare && compile)
    serve .............................. Run project with a local webserver
    (including prepare)

    Learn more about command options using 'cordova help <command>'

    Aliases
    build -> cordova prepare && cordova compile
    emulate -> cordova run --emulator

    Options
    -v, --version ...................... prints out this utility's version
    -d, --verbose ...................... debug mode produces verbose log output for all activity,
    --no-update-notifier ............... disables check for CLI updates
    --nohooks .......................... suppress executing hooks
    (taking RegExp hook patterns as parameters)

    Examples
    cordova create myApp org.apache.cordova.myApp myApp
    cordova plugin add cordova-plugin-camera --save
    cordova platform add android --save
    cordova requirements android
    cordova build android --verbose
    cordova run android
    cordova build android --release -- --keystore="..android.keystore" --storePassword=android --alias=mykey

    E:MyApp01MyApp>

    -------------------------------------------------

    如果安装的时候报sha1签名错误,就把下载的文件删除掉,重新安装一次,路径:

    C:Users【你的用户名】AppDataRoaming pm ode_modules

  • 相关阅读:
    Jquery 总结的几种常用操作
    Mybatis 一对多
    HTML 子父窗口 iframe 超时 返回首页
    Struts 标签
    Spring + Mybatis 基于注解的事务
    机器学习实战-数据探索(变量变换、生成)
    机器学习实战-数据探索(变量变换、生成)
    Pandas matplotlib 无法显示中文 Ubuntu16.04
    Pandas matplotlib 无法显示中文 Ubuntu16.04
    Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so.
  • 原文地址:https://www.cnblogs.com/shi5588/p/5319549.html
Copyright © 2011-2022 走看看