当前位置:网站首页>JS arguments parameter usage and explanation
JS arguments parameter usage and explanation
2022-07-04 05:41:00 【Tianma 3798】
One 、arguments Parameter Introduction
arguments, It is js An object built into a function in , The values of the actual parameters of the execution function method are stored in arguments in ;
To get these arguments , It needs to be like an array , Use subscript / Index to locate each value , But it can't be said to be an array , Because it has other properties , Such as callee;
And you can't use it shift、push、join Other methods .
Named parameters that do not pass values are automatically assigned undefined;
arguments.length---- Number of parameters
arguments.callee()--- Adjust the Commission itself
Two 、 Use cases
Case study 1:
function show() {
console.info(arguments);
//arguments.callee()
}
show();
show(1, 2);
show(window, 1)
Case study 2:
function sum() {
var result = 0;
for (边栏推荐
- Upper computer software development - log information is stored in the database based on log4net
- 冲击继电器JC-7/11/DC110V
- Canoe panel learning video
- 2022年R2移动式压力容器充装复训题库及答案
- Descriptive analysis of data distribution characteristics (data exploration)
- Thread pool: use thread pool to optimize query speed
- XII Golang others
- Introduction to AMBA
- LabVIEW错误对话框的出现
- Zzulioj:1201: mode problem
猜你喜欢

Kubernets first meeting

19. Framebuffer application programming
![BUU-Crypto-[GXYCTF2019]CheckIn](/img/b8/ad6c05977f6943f30e9975acb6eb6e.jpg)
BUU-Crypto-[GXYCTF2019]CheckIn
![[paper summary] zero shot semantic segmentation](/img/78/ee64118d86a7e43ec4d1cb97191fbe.jpg)
[paper summary] zero shot semantic segmentation
![[paper summary] zero shot semantic segmentation](/img/78/ee64118d86a7e43ec4d1cb97191fbe.jpg)
[paper summary] zero shot semantic segmentation

Programmers don't talk about morality, and use multithreading for Heisi's girlfriend

Signification des lettres du module optique et abréviation des paramètres Daquan

LM小型可编程控制器软件(基于CoDeSys)笔记二十二:错误4268/4052

Build an Internet of things infrared temperature measuring punch in machine with esp32 / rush to work after the Spring Festival? Baa, no matter how hard you work, you must take your temperature first

VB.net 简单的处理图片,黑白(类库——7)
随机推荐
1480. 一维数组的动态和
Flink1.13 SQL basic syntax (I) DDL, DML
left_and_right_net正常版本
19.Frambuffer应用编程
Integer type of C language
left_and_right_net可解释性设计
c语言经典指针和数组笔试题解析
数据标注是一块肥肉,盯上这块肉的不止中国丨曼孚科技
Online shrimp music will be closed in January next year. Netizens call No
Design and implementation of tcp/ip series overview
LM small programmable controller software (based on CoDeSys) note XXI: error 3703
Solar insect killing system based on single chip microcomputer
Basic concept of bus
el-select如何实现懒加载(带搜索功能)
Canoe panel learning video
Analysis of classical pointer and array written test questions in C language
2022 question bank and answers for safety management personnel of hazardous chemical business units
Nodejs learning document
ping端口神器psping
left_ and_ right_ Net interpretable design