<script type="text/javascript">
function aa(){
a=12;
return a;
}
aa()
function bb(){
console.log(a)
}
bb()
</script>
同级函数调用另一个函数的值
---------------------------------------
<script type="text/javascript">
function bb() {
aa()
console.log(a)
function aa() {
a = 12;
return a;
}
}
bb()
</script>
父子级函数调用