在java中序列化对象? [英] serialize objects in java?
问题描述
我基本上希望能够在
greasemonkey中存储和检索树结构。不幸的是GM_setValue和GM_getValue函数
只接受字符串键值对。是否有原生的javascript函数
将序列化对象以便它可以存储和检索
作为字符串?
谢谢。
I basically want to be able to store and retrieve a tree structure in
greasemonkey. Unfortunately the GM_setValue and GM_getValue functions
only take string key value pairs. Is there a native javascript function
that will serialize the object so that it can be stored and retrieved
as strings?
Thanks.
推荐答案
yusuf于2006年6月30日在comp.lang.javascript中写道 :
yusuf wrote on 30 jun 2006 in comp.lang.javascript:
我基本上希望能够在
greasemonkey中存储和检索树结构。不幸的是,GM_setValue和GM_getValue函数只接受字符串键值对。是否有一个原生的javascript函数
将序列化对象,以便它可以作为字符串存储和检索?
I basically want to be able to store and retrieve a tree structure in
greasemonkey. Unfortunately the GM_setValue and GM_getValue functions
only take string key value pairs. Is there a native javascript function
that will serialize the object so that it can be stored and retrieved
as strings?
Methinks for java问题,你应该问一个java NG。
Java!= JavaScript。
-
Evertjan。
荷兰。
(请在我的电子邮件地址中将x'变为点数)
Methinks for a java question, You should ask a java NG.
Java != JavaScript.
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)
但是油脂很多使用javascript,而不是java?
Evertjan。写道:
But greasemonkey uses javascript right, not java?
Evertjan. wrote:
yusuf于2006年6月30日在comp.lang.javascript中写道 :
yusuf wrote on 30 jun 2006 in comp.lang.javascript:
我基本上希望能够存储并在
greasemonkey中检索树结构。不幸的是,GM_setValue和GM_getValue函数只接受字符串键值对。是否有一个原生的javascript函数
将序列化对象,以便它可以作为字符串存储和检索?
I basically want to be able to store and retrieve a tree structure in
greasemonkey. Unfortunately the GM_setValue and GM_getValue functions
only take string key value pairs. Is there a native javascript function
that will serialize the object so that it can be stored and retrieved
as strings?
一个java问题的方法,你应该问一个Java NG。
Java!= JavaScript。
- Evertjan。
荷兰。
(请更改x 我的电子邮件地址中的点数
Methinks for a java question, You should ask a java NG.
Java != JavaScript.
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)
yusuf于2006年6月30日在comp.lang.javascript中写道 :
yusuf wrote on 30 jun 2006 in comp.lang.javascript:
Evertjan。写道:
Evertjan. wrote:
yusuf于2006年6月30日在comp.lang.javascript中写道 :
yusuf wrote on 30 jun 2006 in comp.lang.javascript:
>我基本上希望能够存储和检索树形结构
>在greasemonkey。不幸的是GM_setValue和GM_getValue
>函数只接受字符串键值对。有原生的
>将序列化对象的javascript函数,以便它可以
>存储和检索为字符串?
一个java问题的方法,你应该问一个java NG。
Java!= JavaScript。
> I basically want to be able to store and retrieve a tree structure
> in greasemonkey. Unfortunately the GM_setValue and GM_getValue
> functions only take string key value pairs. Is there a native
> javascript function that will serialize the object so that it can
> be stored and retrieved as strings?
Methinks for a java question, You should ask a java NG.
Java != JavaScript.
[请不要在usenet上使用]
但是greasemonkey使用javascript,而不是java?
[please do not toppost on usenet]
But greasemonkey uses javascript right, not java?
不符合你的主题文字,
但是你可以在那里找点,优素福。
-
Evertjan。
荷兰。
(请在我的电子邮件地址中将x'变为点数)
Not according to your subject line text,
but you could have a point there, Yusuf.
--
Evertjan.
The Netherlands.
(Please change the x''es to dots in my emailaddress)
这篇关于在java中序列化对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!