js
document.getElementById("myImage").src="hackanm.gif";
jquery
$("#img").attr("src", "../images/select.JPG");
改变超链接属性类似
jQuery
$('#loga').attr("href","#bottomlogin")
js
document.getElementById("myImage").src="hackanm.gif";
jquery
$("#img").attr("src", "../images/select.JPG");
改变超链接属性类似
jQuery
$('#loga').attr("href","#bottomlogin")
转载于:https://www.cnblogs.com/notably/p/10661986.html