0
나는 무엇인가로 너트를 얻고 있습니다.쿠키 설정을위한 javascript 테스트 변수
내가하려는 것은 특정 페이지를로드 할 때 쿠키를 설정하여 다른 페이지에 있고 쿠키가 설정되어있을 때 페이지가 새로 고쳐지도록하는 것입니다.
내 상태 테스트가 예상대로 반응하지 않습니다. 난에서 나는 어디에 여기
은 다음 페이지를 다시로드되면, 자바 스크립트가 손실
$(window).load(function() {
var page=$(".listing_voyage");
//alert('page:'+page.length);
//alert('cookie:'+getCookie('refresh'));
if (getCookie('refresh') && page.length)
{
window.location.reload(true);
SetCookie("refresh",false);
alert('i am reloading');
}
});
var page_produit=$("#page_produit");
if (page_produit.length)
{
SetCookie("refresh",true);
}