pass function in json and execute

前端 未结 7 1944
夕颜
夕颜 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:14

    take a look at the JSONfn plugin.

    http://www.eslinstructor.net/jsonfn/

    it does exactly what you're asking for.

    -Vadim

提交回复
热议问题