2007å¹´11æ26æ¥23:45 ã«ãã´ãªLightweight Languages javascript - ã伺ã - Object.prototype.clone() JavaScriptã§ãªãã¸ã§ã¯ãã®ãã£ã¼ãã³ãã¼ãã©ããã£ã¦ããã®ããããã¨ãã£ããã®ããªããããªã®ã§ä½ã£ã¦CodeReposã«ããã¦ããã¾ããã /lang/javascript/clone/trunk/clone.js - CodeRepos::Share - Trac ãªãããããã®ãå¿ è¦ãã¨ããã¨ã var a = [0,1,2,3]; alert(a); // 0,1,2,3 var a2 = a; a2[4] = 4; // a2ãå¤ããã¨... alert(a2); // 0,1,2,3,4 -- aãå¤ãã£ã¦ãã¾ã! ããã§ããåç §ã§ãªãã¸ã§ã¯ããå®è£ ãã¦ãããã®ã«ã¯JavaScriptã§ãªãã¦ããã
{{#tags}}- {{label}}
{{/tags}}