프로그래머...

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

정모: 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: 58
Yesterday View: 22
30 Days View: 375
Image at ../data/upload/3/2288953

자바스크립트 함수 예제

Views : 3,690 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. 9
Page 1
필고관리자  2991  15-01-03
Post thumbnail image
thruthesky  39694  14-09-30
필고관리자  3444  14-09-30
필고관리자  4233  14-01-15
thruthesky  10564  14-01-11
thruthesky  5613  13-12-22
thruthesky  3691  13-11-10
Photo Post thumbbail image
thruthesky  12933  13-09-10
thruthesky  3952  13-09-03