<script>
var txt="";
function message()
{
try {
adddalert("JDJDJDJ");
}
catch(err) {
txt = "AAAAAAAA\n\n";
txt+="jjjjjjj\n";
alert(txt);
}
}
</script>
</head>
<body>
<input type="button" value= "查看消息" onclick = "message()"/>
</body>
js try catch
最新推荐文章于 2024-07-21 17:06:59 发布