日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

android h5 保存通讯录,h5+调用系统通讯录

發布時間:2023/12/10 windows 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 android h5 保存通讯录,h5+调用系统通讯录 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

h5+調用系統通訊錄

發布時間:2018-03-15 10:09,

瀏覽次數:1259

Contacts Example

body,html{

width: 100%;

height: 80%;

font-size: 62.5%;

background: rgb(245,245,245);

}

*{

margin: 0;

padding: 0;

}

ul{

list-style: none;

}

a{

text-decoration: none;

}

.list-h{

width: 95%;

padding-left: 5%;

height: 3rem;

padding-top: 1rem;

padding-bottom: 1rem;

border-bottom: 1px solid #DDDDDD;

}

.list-h>p{

display: inline-block;

width: 3rem;

height: 3rem;

border-radius: 50%;

background: #29ACBA;

line-height: 3rem;

text-align: center;

color: #FFFFFF;

}

.list-h>h3{

width: 70%;

height: 3rem;

line-height: 3rem;

font-size: 1.4rem;

display: inline-block;

margin-left: 1rem;

}

// 監聽plusready事件

document.addEventListener( "plusready", function(){

}, false );

function find(){

plus.contacts.getAddressBook(plus.contacts.ADDRESSBOOK_PHONE, function

(addressbook) {

addressbook.find(["displayName","phoneNumbers"],function(contacts){

var list="";

for(var i=0;i

if(contacts[i].phoneNumbers.length > 0){

var str=contacts[i].displayName.substr(contacts[i].displayName.length -2, 2);

list+="

class='list-h'>

"+str+"

"+contacts[i].displayName+"("+contacts[i].phoneNumbers[0].value+")"+"

";

}else{

}

}

$("body").append(list);

}, function () {

alert("error");

},{multiple:true});

},function(e){

alert("Get address book failed: " + e.message);

});

}

安麗

安麗(15545090181)

Find

有問題的話可以來本人個人博客留言:http://www.funtechstudy.com/

總結

以上是生活随笔為你收集整理的android h5 保存通讯录,h5+调用系统通讯录的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。