logo

js修改img的src值

2025-02-05 点击 47

js原生方法:document.getElementById("img").src = "1.jpg";

Jq方法:$("#img").attr("src","1.jpg");

0%