JavaScript template library that doesn't use eval/new Function

前端 未结 10 1215
抹茶落季
抹茶落季 2021-02-05 17:52

Google Chrome extensions using manifest_version: 2 are restricted from using eval or new Function. All of the JavaScript templating librar

10条回答
  •  深忆病人
    2021-02-05 18:43

    https://developer.chrome.com/extensions/sandboxingEval

    Not sure when it was added, but you can do Firefox style sandboxing in Chrome now. I'm porting my Firefox extension, so I need this (since I don't have evalInSandbox :P)

提交回复
热议问题