Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

backendSessionService问题 #1165

Open
wangkunmeng opened this issue Aug 4, 2020 · 2 comments
Open

backendSessionService问题 #1165

wangkunmeng opened this issue Aug 4, 2020 · 2 comments

Comments

@wangkunmeng
Copy link

session.set('key', undefined) ;然后session.pushAll()时‘key’的值不能推送到前端服务器,只能session.push('key')。
或者session.set('key', null); 然后session.pushAll()

@whtiehack
Copy link
Contributor

{key:undefined } 这样 JSON 序列化出来的就是 {}

{key:null } 这样 JSON 序列化出来的就是 {"key":null}

这是语言特性

@wangkunmeng
Copy link
Author

@whtiehack 我知道是语言问题,应该加个警告或者其它策略

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants