【发布时间】:2015-03-28 06:42:35
【问题描述】:
下面是我的代码
<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 中的数据是否为空或为空?如何检查?
【问题讨论】:
标签: javascript jquery template-engine jsrender jsviews