chang 获取inoput val
return input 中的val
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>POC</title>
<script src="https://www.jq22.com/jquery/jquery-3.3.1.js"></script>
</head>
<body>
<input type="" name="" id="callType" value="" placeholder="输入呼叫类型" />
<input type="" name="" id="callNumber" value="" />
<button>呼叫</button>
<script type="text/javascript">
//请求的服务的 IP
let url = 'http://192.168.106.17:3000'
$("input").change(function(){
let type = $("#callType").val()
let udn = $("#callNumber").val()
console.log(udn)
url = url + "?udn=" + udn + '&calltype=' + type + '&tid=' + udn
return url
})
$("button").click(function(){
url = url
window.location.replace("AcroLTEDC:/")
$.ajax({url: url,success:function(result){
console.log(result)
}});
});
</script>
</body>
</html>