Tag:gym shoes

  • Use cookie to save value temporarily

    Time:2020-9-27

    Product details: //Cookie zero time storage cart function addcar() {   //Determine whether the cookie has a value   if (getCookie(“shopcar”) == null) {   //Array type   setCookie(“shopcar”, “[]”);   }// in this example, the value is written dead   var obj = {     Name: “shoes”,     Price: “1200”   };   //Gets the value, in this case of string type   var liststr […]