藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯繫信箱 |
 您目前的位置:首頁 > 自由軟件 > 技術交流 > 應用編程


    

藍森林 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]

非常感謝!!哈哈

潑你一身水∼∼∼∼




Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林網站 版權所有。 E-mail : webmaster@lslnet.com