我这么写有错没有?
<script type="text/javascript">
$("#a1").attr("href","www.imooc.com")
var $url = $("#a1").attr('href');
$("#tip").html($url);
</script>
<script type="text/javascript">
$("#a1").attr("href","www.imooc.com")
var $url = $("#a1").attr('href');
$("#tip").html($url);
</script>
2015-08-05
举报