-3
<a href="/home/" id="one"><img src="images/img1.png"/></a>
JS
<script>
$(document).ready(function(){
$('#one').
});
</script>
如何改变锚标记<a href="/home/" id="one"><img src="images/img2.png"/></a>
?
变化'prop'到'attr'阅读http://api.jquery.com/attr/和http://api.jquery.com/prop/ – 2013-03-12 11:48:02
@RohanKumar莫非你告诉我为什么我需要把'prop'改成'attr'? – VisioN 2013-03-12 11:48:41
它取决于jquery版本,检查[this](http://stackoverflow.com/questions/5874652/prop-vs-attr)。 – Praveen 2013-03-12 11:53:27