rest获取实参

95 阅读1分钟
<html>
	<head>
		<meta charset="utf-8">
		<title>rest获取实参</title>
	</head>
	<body>
		<script type="text/javascript">
			function date(...args){
				console.log(args)
			}
			date(1,2,3,4,5)
		</script>
	</body>
</html>