隨筆-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 閱讀(759) 評論(0)  編輯  收藏 所屬分類: 其它
          主站蜘蛛池模板: 岳池县| 屯留县| 离岛区| 大同市| 麻城市| 柳江县| 泰宁县| 漯河市| 陆川县| 靖州| 永安市| 日照市| 咸阳市| 连南| 大同县| 凤翔县| 青铜峡市| 三门县| 江西省| 临澧县| 云霄县| 调兵山市| 合阳县| 清丰县| 灌南县| 察哈| 攀枝花市| 绥江县| 准格尔旗| 林芝县| 佛冈县| 临猗县| 兰考县| 承德县| 滕州市| 莱芜市| 恩施市| 长宁县| 共和县| 屏东县| 观塘区|