1.通过window.location.href
示例:
window.location.href=tel://123456789;
2.通过a标签
示例:
uniapp调用拨打电话功能:使用uni.makePhoneCall
示例:uni.makePhoneCall({
phoneNumber: Phone,
success(){
console.log(‘拨打成功了’);
},
fail() {
console.log(‘拨打失败了’);
}
});
1.通过window.location.href
示例:
window.location.href=tel://123456789;
2.通过a标签
示例:
uniapp调用拨打电话功能:使用uni.makePhoneCall
示例:uni.makePhoneCall({
phoneNumber: Phone,
success(){
console.log(‘拨打成功了’);
},
fail() {
console.log(‘拨打失败了’);
}
});