当前位置: > undefined月undefined日是什么意思...
题目
undefined月undefined日是什么意思

提问时间:2020-12-21

答案
英文翻译的意思是:1.不明确的,未下定义的2.未阐明的;未限定的
在电脑方面:
一个特殊值,通常用于指示变量尚未赋值.对未定义值的引用返回特殊值 undefined.动作脚本代码 typeof(undefined) 返回字符串 "undefined".undefined 类型的唯一值是 undefined.当将 undefined 转换为字符串时,它转换为空字符串.
undefined 值与特殊值 null 相似.事实上,当使用相等运算符对 null 和 undefined 进行比较时,它们的比较结果为相等.
在这个示例中,变量 x 尚未声明,所以其值为 undefined.在代码的第一部分,使用相等运算符 (==) 比较 x 的值与值 undefined,并将相应的结果发送到输出窗口.在代码的第二部分,使用相等运算符比较值 null 与 undefined.
// x has not been declared
trace ("The value of x is " x);
if (x == undefined) {
trace ("x is undefined");} else {trace ("x is not undefined");}trace ("typeof (x) is " typeof (x));
if (null == undefined) {
trace ("null and undefined are equal");} else {trace ("null and undefined are not equal");}下面的结果显示在输出窗口中:
The value of x is x is undefined
typeof (x) is undefined
注意:在 ECMA-262 规范中,将 undefined 转换为字符串“undefined”,而不转换为空字符串.
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.