내 핸들 막대보기에 값이 표시되지 않고 대신 모든 핸들 막대 변수에 "0"이 표시됩니다. 내가 뭘 잘못 했니?핸들 막대에 값이 표시되지 않음
내 핸들 JS
function reDrawList(){ var source = $("#entry-template").html(); var template = Handlebars.compile(source); var context = {name: "Example" , price: "example2"}; var html = template(context); $(".scrollable").prepend(template); };
내 핸들은
<script id="entry-template" type="text/x-handlebars-template"> <li class="listnone border_bottom_grey semi_padding thin"> <div class="circle"><i class="icon-pin"></i></div> <span class="grey bold inline quarter_padding_left"> {{name}}</span> <span class="small right white tag_price">{{price}}</span></br> <span class="quarter_padding_top inline lightgrey small"> <i class="icon-location-2 indent20 small"> </i> {{location}}</span> </li> </script>
감사를보기!
는 사실,이 문제가 있었다, 당신은 몇 초를 알아 냈어. –