我尝试修复Cookie Javascript代码中的问题但在Chrome控制台中仍然出现功能错误。有人能帮助我吗?
<script>
//<![CDATA[
$(document).ready(function()
{
console.log( $.cookie("test_cookies_agree"));
if( $.cookie("test_cookies_agree") != "autorized"){
$('div.cookies').css('visibility','visible');
}
$('.fechar').click(function() {
$('div.cookies').toggle( "fade", 1000 );
$.cookie("test_cookies_agree", "autorized", {expires : 10, path : '/' });
return false;
});
});
Jobber.jobber_url = "http://www.test.com/";
//]]>
</script>