arguments(js中的arguments是什么东东)

本文目录
- js中的arguments是什么东东
- parameter和argument有何区别
- 在java中,arguments是什么意思
- Javascript arguments.callee和caller的区别
- 在聊哲学话题的时候“arguments”通常是什么意思
js中的arguments是什么东东
参数的默认取法。
在function定义的时候,可以定义参数,也可以不定义,如果调用这个函数的时候给了它参数,那么就可以通过这个数组来得到所有参数。
上面的代码的意思,就是如果调用$(id)这样的函数的话,就会返回由id所指定的这个页面控件。
比如一个div,其id是d1,那么用$(“d1“)就能够得到这个div。
又是0分,唉。
parameter和argument有何区别
******************
argument
[5B:^jumEnt]
n.
争论, 辩论, 论据, 论点, ~ (for,against), 意见
E-C American Heritage Dictionary
--------------------------------------------------------------------------------
argument
ar.gu.ment
AHD:[?r“gy…-m…nt]
D.J.[6$8gj*m*nt]
K.K.[6$gj*m*nt]
n.(名词)
(1)
A discussion in which disagreement is expressed; a debate.
争论:表达不同意见的讨论;辩论
(2)
A quarrel; a dispute.
争吵;争论
(3)
Archaic A reason or matter for dispute or contention:
【古语】 主张,理由:争论或论辩的理由或内容:
“sheath’d their swords for lack of argument”(Shakespeare)
“因无争论理由收剑入鞘”(莎士比亚)
(4)
A course of reasoning aimed at demonstrating truth or falsehood:
论证:旨在说明真伪的推论过程:
presented a careful argument for extraterrestrial life.
提出关于地球外生命的详细论证
(5)
A fact or statement put forth as proof or evidence; a reason:
论据,根据:作为根据或论据而提出的事实或论点;理由:
The current low mortgage rates are an argument for buying a house now.
现行的低抵押率是马上买房子的根据
(6)
A summary or short statement of the plot or subject of a literary work.
情节:文学作品的故事梗概或简短内容提要
(7)
A topic; a subject:
题目;主题:
“You and love are still my argument”(Shakespeare)
“你和爱情仍是我的主题”(莎士比亚)
(8)
Logic The minor premise in a syllogism.
【逻辑学】 三段论中的小前提
(9)
Mathematics
【数学】
(10)
The independent variable of a function.
函数的自变数
(11)
The amplitude of a complex number.
复数的辐角
(12)
Computer Science A value used to evaluate a procedure or subroutine.
【计算机科学】 自变量,变元:一数值,用于确定程序或子程序的值
语源
--------------------------------------------------------------------------------
(1)
Middle English
中古英语
(2)
from Old French
源自 古法语
(3)
from Latin arg?m
源自 拉丁语 arg?m
(4)
from arguere [to make clear] * see argue
源自 arguere
*************************************************
parameter
[pE5rAmitE]
n.
参数, 参量, 《口》起限定作用的因素
E-C American Heritage Dictionary
--------------------------------------------------------------------------------
parameter
pa.ram.e.ter
AHD:[p…-r2m“1-t…r]
D.J.[p*6r#mit*]
K.K.[p*6r#m!t+]
n.(名词)
(1)
Mathematics
【数学】
(2)
A constant in an equation that varies in other equations of the same general form, especially such a constant in the equation of a curve or surface that can be varied to represent a family of curves or surfaces.
参数,参量:在相同一般类型的等式中取值变化的等式中的常数或常量,尤其是曲线方程和平面方程中能代表一类曲线或平面的常量
(3)
One of a set of independent variables that express the coordinates of a point.
变量,参数:一组代表与之对应的点的独立变量之一
(4)
One of a set of measurable factors, such as temperature and pressure, that define a system and determine its behavior and are varied in an experiment.
要素,测量元素之一:一组可测量的确定某一系统并决定该系统的状况且在实验中是变化的因素之一,例如温度和压力
(5)
Usage Problem A factor that restricts what is possible or what results:
【用法疑难】 限制因素:限定可能性和结果的因素:
“all the parameters of shelter—where people will live, what mode of housing they will choose, and how they will pay for it”(New York)
“住宿的所有限制因素——人们住在哪里、他们将选择什么样的住房式样以及他们如何付房钱”(纽约)
(6)
A factor that determines a range of variations; a boundary:
决定变数范围的要素,范围,界限:决定变化范围的因素;限度:
an experimental school that keeps expanding the parameters of its curriculum.
一所不断扩展课程范围的实验学校
(7)
Statistics A quantity, such as a mean, that is calculated from data and describes a population.
【统计学】 母数:一种如平均数等从数据中计算出来的用来描述总体的数值
(8)
Usage Problem A distinguishing characteristic or feature.
【用法疑难】 特色,特征:区别于其它事物的特点或性质
在java中,arguments是什么意思
String arguments 声明了一个String 对象数组。
这个数组中保存着来自于命令行的程序参数。
arguments arguments分别代表着第一个参数和第二个参数。
比如,有一个类名为Egclass.class
c:\》java Egclasss.class Arg0 Arg1
Javascript arguments.callee和caller的区别
一、callee
在学习callee之前,需要先学习arguments。
arguments:
含义:该对象代表正在执行的函数和调用它的函数的参数。
语法:[function.]arguments[n]
参数:function :当前正在执行的 Function 对象的名字。
n :要传递给 Function 对象的从0开始的参数值索引。
说明:在前面执行上下文的学习过程中,知道生成执行上下文需要两个阶段,分别是进入执行上下文和执行阶段。在其中的进入执行上下文阶段中,需要做三个工作,其中一个工作是创建幷初始化AO,即arguments对象。
Arguments Objects 是函数上下文里的激活对象AO中的内部对象,它包括下列属性:
callee:指向当前函数的引用
length: 真正传递的参数的个数
properties-indexes:就是函数的参数值(按参数列表从左到右排列)
而其中第一个就是今天需要学习的一个属性。先看一个例子:
function add(a,b){
console.log(arguments.callee);
return a+b;
}
add(3,4);
结果:
function add(a,b){
console.log(arguments.callee);
return a+b;
}
NaN
从结果可以看到,callee是一个指针,指向拥有这个arguments对象的函数。那么可以用这个属性可以做什么?再看一个例子:
function fac(num){
if(num 《= 1){ //0的阶乘也是1
return 1;
}
else{
return num*fac(num-1);
}
}
var trueFac = fac;
fac = function(num){
return 0;
};
console.log(trueFac(10));
结果:0
结果并不是我们想要的,造成这个结果的原因就是在后边更改了fac,fac()永远返回0,而trueFac()方法中利用了fac()方法,造成了结果是0。解决这个问题就可以使用arguments.callee属性。
代码改为:
function fac(num){
if(num 《= 1){ //0的阶乘也是1
return 1;
}
else{
return num*arguments.callee(num-1);
}
}
var trueFac = fac;
fac = function(num){
return 0;
};
console.log(trueFac(10));
结果为:3628800
arguments.callee指向arguments对象的拥有函数引用,当把fac的函数引用赋给trueFac后,arguments对象的拥有函数变成了trueFac,所以结果是正确的。
二、caller
caller与callee不同,caller属性并不属于arguments对象,它是函数对象的属性,Opera的早期版本不支持,这个属性保存着调用当前函数的函数的引用。
例子:
function outer(){
inner();
}
function inner(){
console.log(inner.caller);
}
outer();
结果:
function outer(){
inner();
}
从结果可知,因为outer()调用了inner(),所以inner.caller就指向outer()。
在聊哲学话题的时候“arguments”通常是什么意思
即“论证”,论证即从前提得出结论的推理过程。例如下面这个论证:
苏格拉底是人
人都是会死的
所以,苏格拉底是会死的。
在这个论证中,1和2是前提,3是结论,而论证形式为:
a是b ,b是c,所以 a是c。
论证是否有效与前提或者结论是否正确无关,只与前提与结论之间的关系有关,所以如果我们将上面那个论证中的“苏格拉底”都换成“自行车”,那么这个论证依然是成立的。

更多文章:
dropdownlist 绑定(DropDownList 绑定所有项 并 显示指定项)
2026年10月11日 08:50
易语言网页api接口怎么调用(易语言,怎么读取网页json的api)
2026年10月11日 08:00
majority of(the majority of 和 a majority of的区别以及用法例句)
2026年10月11日 07:40
another time(another time和other time的区别)
2026年10月11日 05:00






