From 87122f46559fd3572cd4f464abedbb94637f0625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=93=E5=96=B5=E9=85=B1?= Date: Wed, 8 Jul 2020 11:18:04 +0800 Subject: [PATCH 1/2] Update README.md --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9b01730..bdd1ca0 100644 --- a/README.md +++ b/README.md @@ -1 +1,12 @@ -# ushio-session \ No newline at end of file +# ushio-session + + +## 定位 +ushio-session是js-session的前身,内置于[iotcat/ushio-js](https://github.com/iotcat/ushio-js)。在使用[iotcat/fp](https://github.com/iotcat/fp)定位设备的基础上,前端用户可以像使用cookie一样使用session。session不依赖与cookie,使用服务端存储。因为这个特性,session可以解决cookie所难以解决的跨域问题。 + + +## 指令 + + `session.get(key)`: 根据键名获取 + + `session.set(key, value)`: 用键名和键值新建或更新一条session + + `session.del(key)`: 根据键名删除session + From 29b484544fe9eff8cec2ecea4911cc109673d942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=93=E5=96=B5=E9=85=B1?= Date: Wed, 8 Jul 2020 11:18:31 +0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bdd1ca0..25bba34 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## 定位 -ushio-session是js-session的前身,内置于[iotcat/ushio-js](https://github.com/iotcat/ushio-js)。在使用[iotcat/fp](https://github.com/iotcat/fp)定位设备的基础上,前端用户可以像使用cookie一样使用session。session不依赖与cookie,使用服务端存储。因为这个特性,session可以解决cookie所难以解决的跨域问题。 +ushio-session是js-session的前身,内置于[iotcat/ushio-js](https://github.com/iotcat/ushio-js)。在使用[iotcat/fp](https://github.com/iotcat/fp)定位设备的基础上,前端用户可以像使用cookie一样使用session。session不依赖与cookie,使用服务端存储。因为这个特性,**session可以解决cookie所难以解决的跨域问题**。 ## 指令