http://ginpen.com/2011/12/16/apply-to-through/ function log() { // console.logã使ããã°ããã§åºå if (window.console && console.log) { console.log.apply(console, arguments); } // consoleã使ããªããã°alert()ã§åºå else { // alert()ã¯å¼æ°ãã²ã¨ã¤ã ããªã®ã§ãçµåãã¦ãã渡ã var text = Array.prototype.join.apply(arguments, [', ']); alert(text); } } log("abc", 1 + 99); ããã ã¨åºåãããã¨ãï¼ä¸»ã«chromeã®dev toolsã®ã¨ãã®è©±ãï¼ã®è¡æ°ãconsole.log.applyã®ã¨ããã«ãªã£ã¡ããã®ã§å
{{#tags}}- {{label}}
{{/tags}}