Javascript判断浏览器是否开cookie:
$(document).ready(function () {
document.cookie = "cookieid=1; expires=60";
var result = document.cookie.indexOf("cookieid=") != -1;
if (!result) {
alert("浏览器未启用cookie");
}else{
alert("浏览器启用cookie");
}
});
更多信息请查看IT技术专栏