隨筆-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)  編輯  收藏 所屬分類: 其它
          主站蜘蛛池模板: 汽车| 麻栗坡县| 额敏县| 深圳市| 永嘉县| 菏泽市| 肇庆市| 马山县| 邹平县| 武强县| 三原县| 永福县| 图们市| 台湾省| 宝应县| 高平市| 鄂州市| 屯门区| 濮阳县| 镇坪县| 文水县| 长葛市| 铜鼓县| 江山市| 平遥县| 郴州市| 天全县| 普格县| 当阳市| 兴国县| 上饶县| 库尔勒市| 喜德县| 蛟河市| 科技| 河津市| 广丰县| 渝北区| 康平县| 新安县| 福海县|