码迷,mamicode.com
首页 > 编程语言 > 详细

js中数组的字符串表示

时间:2015-09-18 18:31:53      阅读:127      评论:0      收藏:0      [点我收藏+]

标签:

<html>
<head>
	<title>数组的字符串表示</title>
	<script type="text/javascript">
	


	function B(){
		var names=["zhangsan","lisi","wangwu"];
		
		var namestr = names.join();
		alert(namestr);

	}

	</script>
</head>
<body>
<input type="text" name="name" id="name">
<input type="button" value="dian" onclick="B();">

</body>
</html>

  

js中数组的字符串表示

标签:

原文地址:http://www.cnblogs.com/airycode/p/4819757.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!