Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

baidu.json.stringify 中对数据类型的判断有问题 #320

Open
Justineo opened this issue Sep 21, 2012 · 0 comments
Open

baidu.json.stringify 中对数据类型的判断有问题 #320

Justineo opened this issue Sep 21, 2012 · 0 comments

Comments

@Justineo
Copy link

使用了 instanceof 来判断类型,这样使得从其他 frame 获取到的 Array 和 Date 对象无法正确序列化。建议改用 baidu.lang.isArray 及 baidu.lang.isDate 来判断。

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

No branches or pull requests

1 participant