随笔-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 阅读(710) 评论(0)  编辑  收藏 所属分类: 其它

只有注册用户登录后才能发表评论。


网站导航: