나의 성장과정  
Front Page
Tag | Location | Media | Guestbook | Admin   
 
[js] 오버라이드가 제공되지 않는다?

<script type="text/javascript"  language="javscript" >
 try {
  var mock = {
   up :  function () {
    alert('난 멍미?');
   },
   up : function(arg1) {
    alert(arg1);
   },
   up : function(arg1, arg2) {
    alert(arg1 + ' ' + arg2);
   }
  };

  mock.up();
  mock.up('걱정하는것을');
  mock.up('걱정하지마','로켓펀치제너레이션');

 
 }catch(e) {
  alert('너 이노무 자식,사순이! 코딩 잘 해!'+e.description);
 }
 
</script>



줄창 마지막으로 선언된 mock.up 만 호출할 것이다!
이를 해결할만한 꼼수는 있지만(컨트롤러만들기), 난 처음부터 다르게 호출하고 싶은데 우야지?


BLOG main image
Simple is beatiful!
 Notice
 Category
분류 전체보기 (755)
전직 (0)
일상 (7)
진행중 (6)
3Fs (14)
미정 (3)
Serendipitous! (6)
지르자 : 맥북 (5)
(5)
FaceBook (3)
 TAGS
네트워크 Safari Eclipse color Debug 접근지정자 primitive 사파리 JavaScript HP Java DOM laserjet CP1215 커피 tomcat URL URLConnection 자바스크립트 JS
 Calendar
«   2025/07   »
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 31
 Recent Entries
 Recent Comments
 Archive
 Link Site
상상할 수 있는 힘이 ..
즐겁게살자
인생의 소중한 꿈
{fly to the ocean.com}
누노의 컴퓨토피아
한RSS
[지인]I can\'t stop. Love. Lo…
[원츄]OK 괜찮아 다 잘 될거야
[원츄]애자일 이야기
[원츄]IBM Developerworks
 Visitor Statistics
Total :
Today :
Yesterday :
rss