我有很多“编译”下划线模板(几个月前我将编译好的模板保存到文件上,并意外删除原始模板文件夹...... :()是否可以“反编译”这个模板?例如之一:反编译_underscore模板
UV.templates["template-button-widget"] = function() {
return $.trim(function(obj) {
var __t, __p = "",
__j = Array.prototype.join,
print = function() {
__p += __j.call(arguments, "")
};
with(obj || {}) __p += '\n\n <div class="button" data-id="' + (null == (__t = data._id) ? "" : _.escape(__t)) + '">\n\n <div class="icon"></div>\n\n </div>\n\n';
return __p
}.apply(this, arguments))
},
,如果您使用的git - 通常你可以做恢复到承诺在您删除的文件夹。 –
不要使用git这个项目,但谢谢 – 20yco