1
我已經添加了一個簡單的Handlebar來從JSON數據中獲取內容,但是iam在控制檯中收到此錯誤 - 「TypeError:this._input is undefined」。 IAM得到正確的輸出,但我仍然一直得到這些錯誤..TypeError:this._input在Handlebars中未定義
<div class="profileSectionhandle">
<script id="profileTabs" type="text/x-handlebars-template">
{{#profilecontent}}
.......
{{/profilecontent}}
</script>
</div>
var source = $("#profileTabs").html();
var template = Handlebars.compile(source);
$(".profileSectionhandle").html(template(data));