|
藍森林 http://www.lslnet.com 2006年8月25日 8:28
請教調用function的問題
[html]
<script>
var b="hello";
function aa(){
alert(b);
}
</script>
<script>
var h=0;
function bb(){
if(h!=0){
??????????????? //請問該怎麼寫 滿足h!=0後如何調用function aa()
}
}
</script>
<input type=button name=d value=d onclick="bb()">
[/html] |
在用的地方aa()就可以了
[html]<script>
var b="hello";
function aa(){
alert(b);
}
</script>
<script>
var h=1;
function bb(){
if(h!=0){
aa() //請問該怎麼寫 滿足h!=0後如何調用function aa()
}
}
</script>
<input type=button name=d value=d onclick="bb()">
[/html] |
非常感謝!!哈哈
潑你一身水∼∼∼∼ |
|