阅读背景:

如何只返回一个名称而不是多个名称

来源:互联网 

I have this code at the moment:

我现在有这个代码:

for (var i = 0; i < secname.length; i++) {
description = secname[i].description
var price = secname.map(function(x){ return x.price_breakdown.display_charges.price; });
var max = Math.max.apply(null, price);
var min = Math.min.apply(Math, price.filter(Number));

$("#tabledirect").prepend("<tr><td><img id='theImg' src='/assets/-logo.png'/></td><td><b>" + description + "</b></td><td><b>Available</b></td><td><b>" + min + "</b></td><td><b>Booking Fee Included</b></td><td><b>" + price +"</b></td><td><b>" + button + "</b></td></tr>");
}
f



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: