Unexpected token { error on this line が表示されます
var isSplash =true;
//------DocReady-------------
---> $(document).ready{(function()};
if(location.hash.length == 0)
location.hash="!/"+$('#content > ul > li').eq(2).attr('id');
Unexpected token { error on this line が表示されます
var isSplash =true;
//------DocReady-------------
---> $(document).ready{(function()};
if(location.hash.length == 0)
location.hash="!/"+$('#content > ul > li').eq(2).attr('id');
オブジェクトをreadyに渡す必要はありません(または渡そうとする必要はありません)
あなたはこれを持っています
$(document).ready{(function()};
あなたはこれを必要とします
$(document).ready(function() { });
これを試して...
var isSplash = true;
$(document).ready(function(){
if(location.hash.length === 0) {
location.hash="!/"+$('#content > ul > li').eq(2).attr('id');
}
});