1.html
<html>
<script>
var a=true; //根据2楼的已修改,问题还是依然存在,在某些情况下
</script>
<script src=2.js type="text/javascript"></script>
2.js:
if (!window.a) {
alert('不存在');
}
问题是:为什访问1.html时候,明明a在script已经定义为TRUE,为什么2.js执行的时候还会执行到alert('不存在');
不是总出现,为什么有这个问题
--
修改:westsand FROM 124.207.144.*
FROM 124.207.144.*