惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

SangSir丨艺术界的一朵奇葩丨至一网络科技

Windows 使用 Hyper-V 网络上传速度异常慢解决方案 Mac homebrew 升级导致的 php 不能正常启动 dyld[40013]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicuio Uniapp h5部署到服务器刷新页面出现404 天地图修改主题颜色修改背景色 宝塔服务器多站点配置多个redis节点以及自启动方案 Part.Three. 前端JOB MODEL Part Two. 前端面试题库 Part One. 前端react方向 阿里巴巴前端暑期实习面经
Uniapp中plus.contacts.getAddressBook获取通讯录为返回type:0解决方案
博主: SangSir · 2023-07-12 · via SangSir丨艺术界的一朵奇葩丨至一网络科技

图片1
图片2
在干活的时候同事发现获取不到通讯录,官网也没有写出具体的获取通讯录代码的方法,最后百度搜索到了解决方案,不墨迹直接贴代码:

plus.contacts.getAddressBook(plus.contacts.ADDRESSBOOK_PHONE, function( addressbook ) {
    //  console.log(addressbook)
    addressbook.find(["displayName","phoneNumbers"],res=>{
        console.log(res)
        for(var i in res){
            console.log(res[i]);
        }
    })
}, function(error) {
    console.log(error.message);
});

更多操作,感谢大佬的文章:contacts 模块管理系统通讯录