日期:2014-05-16 浏览次数:20303 次
<html> <script type="text/javascript" src="jquery-1.3.2.js"></script> <head></head> <body > <span id="s" ></span> </body> <script type="text/javascript"> var members=["John","Steve","Ben","Damon","Ian"]; document.getElementById('s').innerHTML=members.join('-'); </script> <script type="text/javascript"> var members=["John","Steve","Ben","Damon","Ian"]; $('#s').append(members.join('</br>')); </script> </html>