久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      phonegap使用方法介紹(三)克隆和刪除聯(lián)系人

      下面小編就為大家?guī)硪黄褂胮honegap克隆和刪除聯(lián)系人的實(shí)現(xiàn)方法。小編覺得挺不錯(cuò)的,現(xiàn)在就分享給大家,也給大家做個(gè)參考。一起跟隨小編過來看看吧

      實(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(contact){                   alert("Success");               }                               function onError(error){                    alert("Error= "+error.code);               }                               //克隆聯(lián)系人               function cloneContact(){                   var myContact=navigator.contacts.create();                   myContact.displayName="張三";                   myContact.gender="male";                   var myClone=myContact.clone();                   myContact.displayName="李四";                   myContact.save(onSuccess,onError);               }                               //刪除聯(lián)系人               function delContact(){                   var myContact=navigator.contacts.create();                   myContact.displayName="李四";                   myContact.gender="male";                   myContact.remove(onSuccess,onFail);               }                           </script>       </head>           <body>           <button onclick="cloneContact();">Clone Contact</button>           <button onclick="delContact();">del Contact</button>       </body>       </html>

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