<!doctype html> <html> <head> <meta charset = utf-8> <title>データベース例</title> <script type = text/javascript charset = utf-8 src = cordova.js> </scrip> <script type = text/javascript charset = utf-8> document.addeventlistener(deviceready、ondeviceready、false); function ondeviceready(){} function onsuccess(contacts){document.write(contact.length+'contacts fund。'); for(var i = 0; i <contacts.length; i ++){for(var j = 0; j <contacts [i] .emails.length; j ++){document.write(email =+contacts [i] .emails [j] .Email); }} alert( 'success'); } function onerror(error){alert(oooops!); } function findcontact(){var myoptions = new ContactFindoptions(); myoptions.filter = gmail; // } </script> </head> <body> <button onclick = findcontact();> find連絡先</button> </body> </html>phonegap查找联系人的实现方法就是小编分享给大家的全部内容了、希望能给大家一个参考、也希望大家多多支持vevb武林网。