js小例子(2)

問題描述:彈出內填寫「1」提示男,填寫「0」提示女,其它填未知html <!DOCTYPE html> <html> <head> <title></title> </head> <body> <script> var res=window.prompt("請輸入"); if(res==0){ document.write("女"); }else if(
相關文章
相關標籤/搜索