gpt4 book ai didi

couchdb - 在 couchapp 列表中使用 underscorejs

转载 作者:行者123 更新时间:2023-12-04 05:37:14 26 4
gpt4 key购买 nike

我正在使用 couchdb 1.2.x,我正在尝试使用 underscorejs 在一个列表中,没有成功。

这是我如何进行:

function(head, req) {
var _ = require('vendor/underscore/underscore');
log(_);
}

通过查看couchdb日志,我可以看到 var _未定义。另外,underscorejs 日志说:

1.3.0 — Jan. 11, 2012
Removed AMD (RequireJS) support from Underscore. If you'd like to use Underscore with RequireJS, you can load it as a normal script, wrap or patch your copy, or download a forked version.



我不确定如何进行;任何线索?

谢谢

最佳答案

我唯一的建议是使用直接替换 Lo-Dash .

除此之外,如果提供 AMD 加载程序支持。

关于couchdb - 在 couchapp 列表中使用 underscorejs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11781502/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com