xxx
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
function demo(a,b,c){
|
||||
// es5
|
||||
// console.log(Array.prototype.slice.call(arguments));
|
||||
//es6
|
||||
// console.log(Array.from(arguments))
|
||||
//箭头函数
|
||||
}
|
||||
demo(1,2,3);
|
||||
let f=(...x)=>{
|
||||
// console.log(x);
|
||||
}
|
||||
console.log(Array.prototype);
|
||||
// f(1,2,3,4,5,6,7,8);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user