logo - 刷刷题
下载APP
【判断题】

脚本中定义的变量是局部变量,函数中定义的变量是全局变量。

A.
正确
B.
错误
举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【单选题】引用名为“xxx.js”的外部脚本的正确语法是()

A.
<script src="https://cdn.shuashuati.com/imgs/8549c0a6914e80b33e1c9f67923184d0.js">
B.
<script href="https://cdn.shuashuati.com/imgs/8549c0a6914e80b33e1c9f67923184d0.js">
C.
<script name="https://cdn.shuashuati.com/imgs/8549c0a6914e80b33e1c9f67923184d0.js">

【单选题】Password is a secret series of 5 that enables a user to access a file, computer, or program. On multi-user systems, each user must enter his or her password before the computer will respond to 6 ....

A.
在函数内只能访问局部变量,而不能访问全局变量
B.
局部变量与全局变量的名字不得相同
C.
若一个函数被多次调用,则其定义的局部变量必定分配同一个存储单元
D.
函数中定义的局部变量与全局变量同名时,在函数内引用的是局部变量

【单选题】现有物体A,A物体添加有Rigidbody组件。在脚本中获取A物体的Rigidbody组件的方法是( )。

A.
A.GetCompotent ();
B.
Rigidbody.GetCompotent ();
C.
A.GetCompotent<>(Rigidbody);
D.
GetCompotent (Rigidbody);