Javascript 参数列表后下划线JS:SyntaxError:missing)
我知道有很多类似的问题,所以,但没有一个我检查可以解决我的问题 我在这篇关于下划线模板的文章中引用了这个 这是我的模板:Javascript 参数列表后下划线JS:SyntaxError:missing),javascript,underscore.js,Javascript,Underscore.js,我知道有很多类似的问题,所以,但没有一个我检查可以解决我的问题 我在这篇关于下划线模板的文章中引用了这个 这是我的模板: <script type="text/html" id="forecastTemplate"> <table class="forecast-table"> <tbody> <% _.each(items,function(ite
<script type="text/html" id="forecastTemplate">
<table class="forecast-table">
<tbody>
<% _.each(items,function(item,key,list){
var day = moment.unix(item.dt).format("ddd");
%>
<tr>
<td><%= day %></td>
<td><span><%= item.temp.min %></span><span class="wi wi-celsius"></span></td>
<td><span><%= item.temp.max %></span><span class="wi wi-celsius"></span></td>
<td><span class="wi wi-rain"></span></td>
</tr>
<% }); %}
</tbody>
</table>
</script>
最后,你有该死的,那是一个愚蠢的一个!非常好的接球!我还不能接受这个答案,但我会尽快接受!有时候你就是看不到。意思是喝咖啡或休息