Javascript 使用胡须时Couchapp列表中超时
我有一个简单的列表视图,其中我(尝试)使用mutache呈现包含5个结果的列表的输出Javascript 使用胡须时Couchapp列表中超时,javascript,couchdb,mustache,couchapp,Javascript,Couchdb,Mustache,Couchapp,我有一个简单的列表视图,其中我(尝试)使用mutache呈现包含5个结果的列表的输出 function(head, req) { var row, mustache = require("vendor/couchapp/lib/mustache.js"), template = "<li>{{project}} {{version}} {{description}}</li>"; while(row = getRow()) {
function(head, req) {
var row,
mustache = require("vendor/couchapp/lib/mustache.js"),
template = "<li>{{project}} {{version}} {{description}}</li>";
while(row = getRow()) {
send(mustache.to_html(template,row));
}
}
修复了该问题。提供的require函数添加了.js扩展名,因此不应在参数字符串中给出该扩展名
[error] [<0.22977.0>] OS Process Error <0.22858.0> :: {os_process_error,"OS process timed out."}
function(head, req) {
var row,
template = "<li>{{project}} {{version}} {{description}}</li>";
while(row = getRow()) {
send("Hello");
}
}
function(head, req) {
var row,
mustache = require("vendor/couchapp/lib/mustache"),
template = "<li>{{project}} {{version}} {{description}}</li>";
while(row = getRow()) {
send(mustache.to_html(template,row));
}
}