Antrium A35D

Bir sonraki için en iyisini yap...

jquery cookie check and set , jquery cookie kullanımı ve sorgu

var myCookie = $.cookie('myCookie');

if (myCookie) { // Cookie mevcut ise, değerini kullanabilirsiniz. console.log("Cookie bulundu: " + myCookie); // Örneğin, kullanıcıya mesaj göstermek: alert("Cookie bulundu: " + myCookie); }
else { // Cookie yoksa, gerekli işlemleri gerçekleştirin. console.log("Cookie bulunamadı."); alert("Cookie bulunamadı."); }

SET;

  $.cookie('myCookie', '1', { path: '/' });

10 Okunma | 3.02.2025 16:42

YORUMLAR

Yorum Yaz
Hüseyin ÖZKAN Yazılım Uzmanı

C#,MVC,MSSQL,Windows Forms