song527002517
2021-09-03 13:19
采纳率: 100%
浏览 38

为什么图片加载失败imageObject.complete也会返回true


<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>title</title>
<script>
function alertComplete(){
    alert("图片加载完成: " + document.getElementById("compman").complete);
}
</script>
</head>

<body onload="alertComplete()">
<img id="compman" src="compman.gif" alt="Computerman" width="107" height="98">

</body>
</html>

1条回答 默认 最新

相关推荐 更多相似问题