<html>
<body>
<button onclick="test()"></button>
</body>
</html>
<script>
function test(){
if(confirm("订单通过?")){
console.log("订单已确认通过!");
}else{
return false;
}
}
</script>
<html>
<body>
<button onclick="test()"></button>
</body>
</html>
<script>
function test(){
if(confirm("订单通过?")){
console.log("订单已确认通过!");
}else{
return false;
}
}
</script>