How can I serialize a function in JavaScript?

后端 未结 7 1116
Happy的楠姐
Happy的楠姐 2020-12-05 01:59

For example, say I have a function defined as follows:

function foo() {
  return \"Hello, serialized world!\";
}

I want to be able to seria

相关标签:
7条回答
  • 2020-12-05 02:53

    Don't serialize the call, instead try serializing the info, allowing to repeat the call, which can include things like class & method names, arguments passed into the call or just a call scenario name.

    0 讨论(0)
提交回复
热议问题