扩展运算符的基本用法

127 阅读1分钟
<html>
	<head>
		<meta charset="utf-8">
		<title>扩展运算符</title>
	</head>
	<body>
		<script type="text/javascript">
			let arr = ['伟','阳','宝']
			function shuaige(){
				console.log(arguments)
			}
			shuaige(...arr)
		</script>
	</body>
</html>