我正在使用PURE渲染指令(docs)
HTML
<td class="timer ">
<span class="active_col_duration1">
00:00:00
</span>
</td>
SCRIPT
$('.timer').render(obj, directivetimer);
var directivetimer = {
'span': {
'act<-active':{
'.active_col_duration1+': function(arg){
conf_time_sec = arg.item.duration1;
if(refreshIntervalId>0)
clearInterval(refreshIntervalId);
refreshIntervalId = setInterval(function(){
conf_time_sec = parseInt(conf_time_sec)+1;
$(".active_col_duration1").html(("" +conf_time_sec).toHHMMSS());
},1000);
return " " + (""+arg.item.duration1).toHHMMSS();
},
}
}
};
但是,我得到Uncaught pure error: The node ".active_col_duration1+ was not found in the template: <span class="active_col_duration1"
。我哪里错了?