DOM对象转化成jQuery对象 不起作用???
<div>元素一</div>
<div>元素二</div>
<div>元素三</div>
<script type="text/javascript">
var div=document.getElementsByTagName('div');
var $first=$div.first();
$first.css('color','red')
</script>
为啥不起作用啊啊啊啊啊???
<div>元素一</div>
<div>元素二</div>
<div>元素三</div>
<script type="text/javascript">
var div=document.getElementsByTagName('div');
var $first=$div.first();
$first.css('color','red')
</script>
为啥不起作用啊啊啊啊啊???
2016-10-09
举报