프로그래머...

필고 개발자그룹에서는
필리핀에 계시는 개발자분들이 함께 성장 할 수 있는 공간입니다.

정모: 11월 1일
Image at ../data/upload/7/1203907Image at ../data/upload/4/1112674Image at ../data/upload/2/1046612Image at ../data/upload/9/838729Image at ../data/upload/6/820796Image at ../data/upload/9/766049Image at ../data/upload/0/766040Image at ../data/upload/5/746745
Sub Page View
Today Page View: 25
Yesterday View: 22
30 Days View: 342
Image at ../data/upload/3/2288953

자바스크립트 함수 예제

Views : 3,689 2013-11-10 01:20

QR 스캔해주세요.
필고 개발자 그룹 1269586279
Report List New Post


<script>// var my = (function(){
    return {
        create: function() {
            var name;
            return {
                say: function() {
                    alert('hello ' + name);
                },
                save: function (n) {
                    name = n;
                }
            };
        }
    };
})().create();
my.save('J');
my.say();
// ]]></script> <html>
<body>
<script>
var my = (function(){
    return {
        create: function() {
            var name;
            return {
                say: function() {
                    alert('hello ' + name);
                },
                save: function (n) {
                    name = n;
                }
            };
        }
    };
})().create();
my.save('J');
my.say();
</script>
</body>
</html>

  본 글을 신고하시겠습니까?
Report List New Post
필고 개발자 그룹
No. 95
Page 3
권오창@페이스...  3224  19-04-07
만강이  2860  15-08-31
Photo Post thumbbail image
whizenglish  4309  15-06-20
Post thumbnail image
whizenglish  7196  15-05-21
커먼웰쓰  3479  15-05-14
바다디다  2592  15-02-21
dnfkfkfkfkf  3464  15-01-25
필고관리자  2991  15-01-03
Post thumbnail image
필고관리자  9942  15-01-03
굿리  3396  15-01-02
요잇  3259  14-12-11
jeremyPark  3053  14-12-03
Post thumbnail image
thruthesky  39689  14-09-30
필고관리자  3444  14-09-30
오늘도잠온다  3776  14-05-03
오늘도잠온다  3375  14-04-07
필고관리자  4233  14-01-15
thruthesky  10564  14-01-11
thruthesky  5612  13-12-22
Post thumbnail image
thruthesky  6819  13-12-16
thruthesky  10269  13-11-26
thruthesky  3825  13-11-24
thruthesky  2185  13-11-10
thruthesky  2557  13-11-10
thruthesky  4845  13-11-10
thruthesky  3690  13-11-10
thruthesky  2698  13-09-29
Post thumbnail image
thruthesky  7972  13-09-28
Post thumbnail image
thruthesky  10948  13-09-28
오늘도잠온다  4605  13-09-27
오늘도잠온다  2133  13-09-27
Photo Post thumbbail image
필고관리자  10220  13-09-21
thruthesky  2791  13-09-15
Photo Post thumbbail image
thruthesky  5836  13-09-12
Photo Post thumbbail image
thruthesky  2574  13-09-11
Photo Post thumbbail image
thruthesky  12933  13-09-10
Photo Post thumbbail image
thruthesky  12162  13-09-08
Photo Post thumbbail image
thruthesky  5245  13-09-07
thruthesky  3952  13-09-03
깜씨  3561  13-09-02