1L 的這個 代碼快照,是怎么做的,好厲害。

yummy5
2014-10-15
3 回答
舉報
0/150
提交
取消
1L 的這個 代碼快照,是怎么做的,好厲害。
2014-10-15
舉報
2014-10-15
點擊拍照
2014-10-15
你繼續學習下去也可以寫出來的
2014-10-15
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>confirm</title>
? <script type="text/javascript">
? function rec(){
? ? var mymessage=confirm("你是女的嗎?");
? ? if(mymessage==true)
? ? {
? ? document.write("你是女士!");
? ? }
? ? else
? ? {
? ? ? ? document.write("你是男士!");
? ? }
? } ? ?
? </script>
</head>
<body>
? ? <input name="button" type="button" onClick="rec()" value="點擊我,彈出確認對話框" />
</body>
</html>