下边这段代码中的q是什么意思呢,没有定义呢

下面这段代码中的q是什么意思呢,没有定义呢
本帖最后由 chinaphp2005 于 2015-01-12 23:39:43 编辑
下面这段代码中的q[ ]是什么意思呢,没有定义呢,真接就写上了,当然它是一个数组,这里我问的不是它是啥,而是说它为什么没有定义呢
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<head><title>V9 JS站群跨域</title></head>
<body onload="a()">
<script type="text/javascript">
function a(){
var q = location.search.replace('?','').split('|');
if (top.document.getElementById('comment_iframe')) top.document.getElementById('comment_iframe').height=(q[0] ? q[0] : '0');
if (top.document.getElementById('comment')) top.document.getElementById('comment').innerHTML=(q[1] ? q[1] : '0');
}
</script>
</body>
</html>

------解决思路----------------------
 var q = location.search.replace('?','').split('
------解决思路----------------------
');
这里定义了并赋值了