ios通讯录差异
来源:互联网 发布:淘宝买东西返利 编辑:程序博客网 时间:2024/06/03 19:38
//ios通讯录差异document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { function onSuccess(contacts) {// alert(contacts.length);// alert(contacts[0].name.givenName); if(contacts.length<20){ showMessage(contacts,contacts.length,temp); } if(contacts.length>20){ showMessage(contacts,20,temp); } } function showMessage(contacts,len,temp){ for (var i = 0; i < len; i++) { if(contacts[i].name!=null && contacts[i].phoneNumbers!=null){ //dosomething } } } function onError(contactError) { alertMessage("请开启通讯录"); } var options = new ContactFindOptions(); options.filter = ""; options.multiple = true; <span style="white-space:pre"></span> filter = ["displayName", "phoneNumbers","name"]; navigator.contacts.find(filter, onSuccess, onError, options); }详情仔细看api
链接:http://cordova.apache.org/docs/en/5.1.1/
0 0
- ios通讯录差异
- iOS通讯录
- iOS通讯录
- 通讯录 ios
- iOS通讯录
- iOS通讯录
- IOS通讯录操作总结
- ios 通讯录 中文
- ios 监听通讯录更新
- ios 添加通讯录资料
- ios读取通讯录信息
- ios 操作通讯录联系人
- iOS 通讯录问题
- IOS之通讯录ABAddressBook
- iOS调用本地通讯录
- ios读取通讯录信息
- ios读取通讯录信息
- IOS 之 通讯录
- artTemplate嵌套使用(二)
- 动态储存结构体数组
- android进阶之GridView
- 在VirtualBox上面安装Ubuntu 14.04遇到的问题及对策
- Mac OSX vim配色方案选择
- ios通讯录差异
- 杨氏矩阵查找
- 读者写者
- HDU 2058 The sum problem Time (等差和推理之类数学题)
- iOS 画地图上的标注气泡
- MPI-Avoid deadlock
- 常用传感器协议7:中立格林PM2.5传感器
- LED显示屏 C#编程控制
- 错误:google-chrome-stable-44.0.2403.157-1.x86_64.rpm 的公钥没有安装