ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

JS

์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๊ธฐ์ดˆ1

๐Ÿฉท ์Šˆ ๐Ÿงก 2010. 7. 9. 20:10
728x90
SMALL

<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>ํ•จ์ˆ˜์—ฐ์Šต</title>
<script type="text/javascript">
 function add(a, b){
  return a + b;
 }

 function sub(a, b){
  return a - b;
 }

 //๋ž˜ํผ๋Ÿฐ์Šค๋ฅผ ๊ฐ–๊ฒŒ ๋œ๋‹ค.
 var calc = add;
 var calc2 = function() {
  alert(sub(2,1));
 }
 
</script>
</head>
<body>
 <fieldset>
  <legend>
   <input type="button" value="add" onClick="alert(add(3,4));"/>
   <input type="button" value="sub" onClick="calc2();"/>
  </legend>
 </fieldset>
</body>
</html>

728x90
LIST
๋Œ“๊ธ€
๊ณต์ง€์‚ฌํ•ญ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
Total
Today
Yesterday
๋งํฌ
ยซ   2025/04   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
๊ธ€ ๋ณด๊ด€ํ•จ
250x250