String.format = function () { if (arguments.length == 0) returnnull; var str = arguments[0]; for (var i = 1; i < arguments.length; i++) { var re = newRegExp('\\{' + (i - 1) + '\\}', 'gm'); str = str.replace(re, arguments[i]); } return str; }
let data = {} let index = 0
functionrefreshContentInterval() { if (index >= 4) index = 0; index++; var firstData = data[index] var result = firstData.snippet; if (result.length > 30) { result = result.slice(0, 30) + "..."; } let post_index = "改成转跳的页面"; const descriptionDiv = document.getElementById('description'); descriptionDiv.innerHTML = ''; const aTag = document.createElement('a');