隨筆-193  評論-715  文章-1  trackbacks-0
          Phonegap has big change from v3, the all features are needed to add as plugin.

          The following are notes for debug feature:
          The "console" is a plugin now, so we need to add it by following command:
          cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-console.git

          And then you could use console API now, e.g.:
          console.log('onSuccess! contacts.length:' + contacts.length );

          You will see logs on output console of Xcode or Logcat of Eclipse.
          Pls see following screenshots:





          posted on 2014-01-02 14:17 Robin's Programming World 閱讀(767) 評論(0)  編輯  收藏 所屬分類: 其它
          主站蜘蛛池模板: 杭锦后旗| 绥宁县| 峡江县| 工布江达县| 绥棱县| 惠水县| 怀远县| 北海市| 长顺县| 尼玛县| 宣武区| 西贡区| 沁水县| 徐水县| 巴彦县| 闻喜县| 大埔区| 册亨县| 松滋市| 萝北县| 霍城县| 渝中区| 延长县| 寻乌县| 普洱| 城口县| 兴安盟| 从化市| 三河市| 东安县| 精河县| 溆浦县| 靖远县| 余江县| 永平县| 奎屯市| 乌兰浩特市| 延边| 罗城| 巴彦县| 东丽区|