vue template:
<p class="telNum" @click="callPhone(phoneNum)">{{phoneNum}}</p>
methods:
methods:{callPhone (phoneNum) {window.location.href = 'tel://' + phoneNum}}
时间:2021-08-22 20:05:00
vue template:
<p class="telNum" @click="callPhone(phoneNum)">{{phoneNum}}</p>
methods:
methods:{callPhone (phoneNum) {window.location.href = 'tel://' + phoneNum}}