|
- if (isReset) {dom.innerHTML = '';counterArr[counterIndex] = 0;}var template = '<li class="list-item"><h3 class="msg-title">{{title}}</h3></li>';var html = '',dateStr = (new Date()).toLocaleString();for (var i = 0; i < count; i++) {html += exports.renderTemplate(template, {title: prevTitle + '测试第条新闻标题',date: dateStr});counterArr[counterIndex]++;}var child = exports.parseHtml(html);dom.appendChild(child);};
主要是这一部分怎么转换成科讯的内容标签?
|