https://github.com/apache/cordova-plugin-contacts#contact 我在哪里可以放置图像文件(例如我可以在S3上使用它,或者在资源中附带应用程序),以及URL的正确格式是什么? var contact = navigator.contacts.crea
我在哪里可以放置图像文件(例如我可以在S3上使用它,或者在资源中附带应用程序),以及URL的正确格式是什么?
var contact = navigator.contacts.create();
contact.photos = [new ContactField('url', URL, true)];
contact.save()
这是你的回答….先生.
var photos = [];
var ImgUrl="images/Thomas.jpg";
photos[0] = new ContactField('url', ImgUrl,true);
contact.photos = photos;
