这是下面的我的代码
<script type="text/javascript">
var test1 = {
"type" : "success",
"code" : "600",
"data" : [ ]
};
var template = $.templates("#template");
var htmlOutput = template.render(test1);
$("#billListBox").html(htmlOutput);
function billButtonOnClick(searchBillId,isComeFromBillClick,billDiv){
console.log(searchBillId);
console.log(isComeFromBillClick);
console.log(billDiv);
}
</script>
<div id="billListBox"></div>
我想检查 jsrender 中的数据是否为空或为空?如何检查?