• 首页
  • Tutorials
  • API
  • DEMO
  • Google Group
  • Source Code
  • English API Docs

Navigation

  • index
  • modules |
  • next |
  • previous |
  • KISSY v1.2 Documentation »
  • API Documentation »
  • Core »

cookie¶

cookie

Note

推荐阅读 NCZ 的这篇文章: HTTP cookies explained

Module¶

cookie

Methods¶

cookie.get()¶
Object parse ( name )
获取cookie值
Parameters:name (String) – cookie的名称
Returns:{String} -
cookie.remove()¶
String stringify ( name, domain, path, secure )
置空cookie值,并立刻过期
Parameters:
  • name, (String) – cookie的名称`
  • domain (String) – 域`
  • path (String) – 路径`
  • secure (Boolean) – 安全标志`
cookie.set()¶
String set ( name, val, expires[, domain, path, secure] )
设置cookie值
Parameters:
  • name, (String) – cookie的名称`
  • val (String) – cookie的值`
  • expires (number|date) – 失效时间`
  • domain (String) – 域`
  • path (String) – 路径`
  • secure (Boolean) – 安全标志`

Navigation

  • index
  • modules |
  • next |
  • previous |
  • KISSY v1.2 Documentation »
  • API Documentation »
  • Core »

    Seed

    • loader
    • kissy
    • lang
    • web

    Core

    • ua
    • dom
    • event
    • node
    • json
    • ajax
    • cookie
    • base
    • anim

    Component

    • sizzle
    • mvc
    • template
    • datalazyload
    • flash
    • dd
    • resizable
    • switchable
    • suggest
    • calendar
    • imagezoom
    • overlay
    • uibase
    • component
    • button
    • menu
    • menubutton
    • tree
    • waterfall
    • validation
    • editor
© Copyright 2010~2012, KISSY Team. Created using Sphinx