代码输出结果?
http://xxx.fishc.com/forum/201704/17/074208jmk6okimmolkr4iz.png问:代码输出结果?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>鱼C</title>
</head>
<body>
<script lang="JavaScript" type="text/javascript">
function outPut(s) {
document.write(s+"<br>");
}
var a = "fishc";
var b = a;
outPut(b);//?
a = "鱼C工作室";
outPut(a);//?
outPut(b);//?
//此处有坑
var a_array = ;
var b_array = a_array;
outPut(b_array);//?
a_array = 4;
outPut(a_array);//?
outPut(b_array);//?
</script>
</body>
</html>
答:
**** Hidden Message *****
○试题索引贴●
如果喜欢,请订阅{:10_303:} :
HTML5 - 庖丁解牛 + JavaScript - 庖丁解牛
字符串为赋值,数组为引用! fishc
鱼C工作室
fishc
'1,2,3'
'1,2,3,4'
'1,2,3,4' 0
页:
[1]