to

English [t?] US [tu,t?]

prep.to;about;? ??

array

English [?'re?]

n. ??, ??; ?

vt. ??, ??;

jquery toArray() ?? ???

??: toArray() ???? jQuery ???? ???? ??? ?? ???? ?????.

??: ??$(selector).toArray()

jquery toArray() ?? ?

<html>
<head>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
    x=$("li").toArray()
      for (i=0;i<x.length;i++)
      {
      alert(x[i].innerHTML);
      }
  });
});
</script>
</head>
<body>
<button>輸出每個列表項的值</button>
<ul>
<li>Coffee</li>
<li>Milk</li>
<li>Soda</li>
</ul>
</body>
</html>
???? ?? ?

??? ????? ??? "???? ??" ??? ?????