首先,我在Google上發現了很多主題,但沒有一個解決了我的問題。我找不到這些主題的正確解決方案。 使用jquery.cookie插件,並試圖使一個書籤系統,我的每個項目ID存儲在cookie中是這樣的: $('.bookmarkAds').click(function() {
var id = $(this).attr('data-id');
if ($(this).hasC
所有的cookie使用我jquery cookie插件,這裏是我的代碼: $('.Bookmark').click(function() {
var id = $(this).attr('rel');
if ($(this).hasClass('RedHeart')) {
$(this).removeClass('RedHeart');
$.remove