You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
497 B

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>图片示例</title>
</head>
<body>
<img id="01" src="sdas">
<script>
console.log(document.getElementById("01").src);
</script>
</body>
<script>
var a='https://haowallpaper.com/link/common/file/previewFileImg/15851046182949184';
var img = document.getElementById("01");
img.src = a;
</script>
</html>