アラートを使用しないで、console.log()を使用します
コードコピーは次のとおりです。
<!doctype html>
<html>
<head>
<script type = "text/javascript">
function showlog(message){
console.log(メッセージ);
}
関数テスト(名前){
showlog(name);
}
test( "hello");
</script>
</head>
<body>
</body>
</html>
上記は個人的な経験です。私はここであなたと共有します、友達、試してみてください。