pass function in json and execute

前端 未结 7 1868
夕颜
夕颜 2020-11-28 07:15

Is there any way that I can pass a function as a json string (conversion with JSON.stringify), send it to another function, parse the json and then execute the function that

相关标签:
7条回答
  • 2020-11-28 08:21

    No, you cannot do this. Functions cannot be JSON serialized. Instead of converting the object into JSON you could directly pass it to the other function without calling JSON.stringify.

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