2012-07-31 34 views
0

我努力學習網址持久性,和一個朋友告訴我,研究這段代碼:clog()的做法是什麼?

$(document).ready(function(){ 
var objects = {}; 
var DEFAULT_LOCATION = "diameter"; 


$("#animateObjects").hide(); 


var urlDimension = location.hash.replace("#",""); 
if (urlDimension.length == 0) { 
    // location.hash = "#" + DEFAULT_LOCATION; 
    urlDimension = DEFAULT_LOCATION; 
    $("#"+DEFAULT_LOCATION).addClass("active"); 
    clog("started with no dimension, defaulted to " + DEFAULT_LOCATION); 
} 
else { 
    $("#"+urlDimension).toggleClass("active"); 
    clog("started with dimension: " + urlDimension); 
} 

是什麼木屐()方法實現?

Full code is here

+1

否則你在其中?這不是一個標準函數 - 我猜''console.log'的縮寫。試着問問給你代碼的朋友。 – Dennis 2012-07-31 01:02:07

+0

Diablo2中的聊天寶石是做什麼的? – jAndy 2012-07-31 01:02:13

回答