标签:
<script type="text/javascript"> var sentence = "the quick brown fox jumped over the lazy dog"; var words = sentence.split(" "); for ( var i = 0; i < words.length; ++i) { document.write("word " + i + ": " + words[i]+"<br />"); } </script>
标签:
原文地址:http://www.cnblogs.com/feile/p/5369627.html