久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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)方法。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧

      實(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>

      【相關(guān)推薦】

      1. Html5免費(fèi)視頻教程

      2. phonegap偵聽deviceready事件觸發(fā)后的其他事件

      3. 實(shí)現(xiàn)頁面跳轉(zhuǎn)并能傳值的實(shí)例詳解

      4. IE8不兼容rgba()的處理方法詳解

      5. phonegap完成聯(lián)系人查找功能的代碼詳解

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