首页 > 代码库 > [13年迁移]javascript 的join("")方法,把数组变成统一字符串,用来写长的输出字符串
[13年迁移]javascript 的join("")方法,把数组变成统一字符串,用来写长的输出字符串
javascript 的join("")方法,把数组变成统一字符串,用来写长的参数字符串
function m(a) {
var b = ["<table class=‘DynarchCalendar-topCont‘", j, "><tr><td>", "<div class=‘DynarchCalendar‘>", e ? "<a class=‘DynarchCalendar-focusLink‘ href=http://www.mamicode.com/‘#‘>": "<button class=‘DynarchCalendar-focusLink‘></button>", "<div class=‘DynarchCalendar-topBar‘>", "<div dyc-type=‘nav‘ dyc-btn=‘-Y‘ dyc-cls=‘hover-navBtn,pressed-navBtn‘ ", "class=‘DynarchCalendar-navBtn DynarchCalendar-prevYear‘><div></div></div>", "<div dyc-type=‘nav‘ dyc-btn=‘+Y‘ dyc-cls=‘hover-navBtn,pressed-navBtn‘ ", "class=‘DynarchCalendar-navBtn DynarchCalendar-nextYear‘><div></div></div>", "<div dyc-type=‘nav‘ dyc-btn=‘-M‘ dyc-cls=‘hover-navBtn,pressed-navBtn‘ ", "class=‘DynarchCalendar-navBtn DynarchCalendar-prevMonth‘><div></div></div>", "<div dyc-type=‘nav‘ dyc-btn=‘+M‘ dyc-cls=‘hover-navBtn,pressed-navBtn‘ ", "class=‘DynarchCalendar-navBtn DynarchCalendar-nextMonth‘><div></div></div>", "<table class=‘DynarchCalendar-titleCont‘", j, "><tr><td>", "<div dyc-type=‘title‘ dyc-btn=‘menu‘ dyc-cls=‘hover-title,pressed-title‘ class=‘DynarchCalendar-title‘>", n(a), "</div></td></tr></table>", "<div class=‘DynarchCalendar-dayNames‘>", k(a), "</div>", "</div>", "<div class=‘DynarchCalendar-body‘></div>"]; (a.args.bottomBar || a.args.showTime) && b.push("<div class=‘DynarchCalendar-bottomBar‘>", q(a), "</div>"),
b.push("<div class=‘DynarchCalendar-menu‘ style=‘display: none‘>", o(a), "</div>", "<div class=‘DynarchCalendar-tooltip‘></div>", "</div>", "</td></tr></table>");
return b.join("")
}
[13年迁移]javascript 的join("")方法,把数组变成统一字符串,用来写长的输出字符串