jQuery API 返回首页目录 | jQuery API 中英文对照版
$.cookie(name)

$.cookie(name)

Get the value of a cookie with the given name.

返回值

String

参数

  • name (String): The name of the cookie.

示例

说明:

Get the value of a cookie.

jQuery 代码:
$.cookie('the_cookie');
相关链接
asp之家 | jQuery官方网站 | jQuery中文网 | 电子书作者网站 | 电子书作者blog