• 2022-05-31
    阅读下面代码:Cookiecookie=newCookie(“myCookie”,”xxxx”);__________________response.addCookie(cookie);path为/,由localhost发送Cookie信息,则在下面选项中横线处填写下列哪段代码可以删除名称为myCookie的对象()
    A: cookie.delete();
    B: cookie.setMaxAge(0);
    C: cookie.setPath(“/”);cookie.setMaxAge(0);
    D: cookie.setDomain(“localhost”);cookie.setPath(“/”);cookie.setMaxAge(0);