This commit is contained in:
2021-05-16 12:31:41 +08:00
parent 52138c2f83
commit f6076e0e32
846 changed files with 89 additions and 16811 deletions
+25
View File
@@ -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>