久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      phonegap使用方法介紹(一)查找聯(lián)系人

      下面小編就為大家?guī)?lái)一篇使用phonegap查找聯(lián)系人的實(shí)現(xiàn)方法。小編覺(jué)得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧

      實(shí)例如下:

      <!DOCTYPE html>   <html>         <head>           <meta charset="UTF-8">           <title>Database Example</title>               <script type="text/javascript" charset="UTF-8" src="cordova.js"></script>           <script type="text/javascript" charset="UTF-8">               document.addEventListener("deviceready", onDeviceReady, false);                   function onDeviceReady() {               }                               function onSuccess(contacts){                   document.write(contacts.length+'contacts found.');                   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("Ooops!");               }                               function findContact(){                   var myOptions=new ContactFindOptions();                   myOptions.filter="gmail";//過(guò)濾                   var myFields=["emails"];//要查詢的字段                   navigator.contacts.find(myFields,onSuccess,onError,myOptions);               }                           </script>       </head>           <body>           <button onclick="findContact();">Find Contact</button>       </body>       </html>

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)