工作我運行此代碼,JQuery的曲奇無法在Chrome
<html>
<head>
<title>D</title>
<script type="text/javascript" src="jQuery.js"></script>
<script type="text/javascript" src="Cookie.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.cookie("d", "1") ;
}) ;
</script>
</head>
<body>
<script type="text/javascript">
alert($.cookie("d")) ;
</script>
</body>
</html>
它顯示在Firefox,IE '1',但在鉻 '空'。任何想法爲什麼?我正在使用最新的jQuery和Cookie插件http://plugins.jquery.com/files/jquery.cookie.js.txt
重複:http://stackoverflow.com/questions/335244/why-does-chrome-ignore-local-jquery-cookies – Kai