jquery獲取cookie JQ如何設(shè)置Cookie?
JQ如何設(shè)置Cookie? jquery.cookie.js它提供了一個非常簡單的方法來操作jQuery中的cookie。$.cookie(“cookie”)//獲取cookie$。Cookie(“C
JQ如何設(shè)置Cookie?
jquery.cookie.js它提供了一個非常簡單的方法來操作jQuery中的cookie。$.cookie(“cookie”)//獲取cookie$。Cookie(“Cookie”,“theuvalue”)//設(shè)置Cookie$。Cookie(“theucookie”、“theuvalue”、{expires:7})//使用time$設(shè)置Cookie。Cookie(“theucookie”,“,{expires:-1})//刪除$。Cookie(“theuCookie”,null)//刪除Cookie$。Cookie(“Cookie”、“theuvalue”、{expires:7、路徑:“/”、域:“jquery.com網(wǎng)站“,secure:true})//創(chuàng)建一個新的cookie,包括過期日期、路徑、域名等