<form onsubmit="return checkip()">
<div>手机号<input type="tel" id="telphone" /></div>
<div>密码<input type="password" id="password" /></div>
<input style="display: none;" type="submit" />
<button>登录</button>
</form>
function checkip(){
const telphone = document.getElementById("telphone").value;
const password = document.getElementById("password").value;
console.log("password ->",telphone,password);
return false;
}