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
阅读(562) 评论(0) 编辑 收藏