HTML5 & tel & make a phone call
咋呼叫呀,網頁怎么打電話?
{key: "exploreCorpPhone",title: "企業電話",width: 150,align: "center",render: (h, params) => {let tel = params.row.exploreCorpPhone;if (tel) {return h("div", [h("Icon", {props: {name: "ios-call"}}),h("a", {attrs: {"data-tel": tel,href: `tel: ${tel}`,},}, tel),]);} else {return h("div", [h("Icon", {props: {name: "ios-call"}}),]);}},},
render: (h, params) => {let tel = params.row.exploreCorpPhone;if (tel) {return h("div", [h("Icon", {props: {name: "ios-call"}}),h("a", {attrs: {"data-tel": tel,href: `tel: ${tel}`,},}, tel),]);} else {return h("div", [h("Icon", {props: {name: "ios-call"}}),]);}},
window.open('tel:12345');
https://stackoverflow.com/questions/16781772/trigger-phone-call-with-javascript
<a href="tel: 18123456789">18123456789</a>
<!DOCTYPE html>
<html lang="zh-Hans">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><meta name="author" content="xgqfrms"><meta name="generator" content="VS code"><title>make a phone call in js</title>
</head>
<body><section><h1>js & make a call</h1><a href="tel: 18123456789">18123456789</a><a href="tel: 021 88888888">021 88888888</a></section>
</body>
</html>
fclose?https://zhidao.baidu.com/question/455762432046249965.html
- 調后臺提供的接口
點呼叫彈出呼叫窗口,確認后調后臺提供的接口就可以,后臺會去調釘釘發起電話
https://blog.csdn.net/cengjingcanghai123/article/details/47951003
# input type=tel,
< input type="tel"></input>