/////////////////////////////////////////////////// document.createelement("header"); document.createelement("nav"); document.createelement("article"); document.createelement("footer"); document.createelement("time"); document.createelement("section"); /////////////////////////////////////////////////// $("") .attr({ rel: "stylesheet", type: "text/css", href: "//at.alicdn.com/t/font_2473629_f4ohiwiez4.css" }) .appendto("head"); var splitdatet = function (t, fmt) { t=t.replace(' ','t') var t1 = t.split('t')[0]; var t2 = t.split('t')[1]; var t3 = t1.split('-'); var t4 = t2.split(':'); fmt = fmt.replace('yyyy', t3[0]); fmt = fmt.replace('mm', t3[1]); fmt = fmt.replace('dd', t3[2]); fmt = fmt.replace('hh', t4[0]); fmt = fmt.replace('mm', t4[1]); fmt = fmt.replace('ss', t4[2]); return fmt; } function elemsplitdatet(obj,fmt){ $(obj).each(function(i,o){ $(o).text(splitdatet($(o).text(),fmt)); }); }