(function(s){ if(s){ var userCity = s.getItem("userCity"); if( userCity == null ){ $.get("/index/userCity",null,function(d){s.setItem("userCity",d);$("#AsyncUserCity").html(d)}); }else{ $("#AsyncUserCity").html(userCity); } var hotKeywords = s.getItem("hotKeywords"); if( hotKeywords == null ){ $.get("/index/hotKeywords",null,function(d){s.setItem("hotKeywords",d);$("#AsyncHotKeywords").html(d)}); }else{ $("#AsyncHotKeywords").html(hotKeywords); } }else{ $("#AsyncUserCity").load("/index/userCity"); $("#AsyncHotKeywords").load("/index/hotKeywords"); } })(window.sessionStorage);