Underscore.js _.template causes error from Chrome extension

后端 未结 6 620
北荒
北荒 2020-12-16 12:52

If I use underscore.js\'s _.template() from inside a Google Chrome extension I get the following error in the console:

Uncaught Error: Code generation

6条回答
  •  醉梦人生
    2020-12-16 13:32

    I use Underscore.js because I want Backbone.js for my Chrome extension, I just changed the Template engine to Mustache ~ if you have the same reason, you can also use Underscore.js for Backbone, just do not use _.template() function.

提交回复
热议问题