// Show results in html
存在类错误,显示期望的逗号。
JSX表达式薄雾在关闭div标签时出现父元素错误。
const outputHtml =匹配=> { if(matches.lenght> 0){
const html = matches.map(match => '
<div class="card card-body mb-1">
<h4>${match.name} (${match.abbr}) <span class="text-primary">${match.capital}</span></h4>
<small>Lat : ${match.lat} / Long : ${match.long}</small>
</div>
')
.join('');
matchList.innerHTML = html;
}
}