[13 Migration]javascript Join ("") method, the array into a uniform string, used to write a long output string

Source: Internet
Author: User

The Join ("") method of JavaScript, which turns the array into a uniform string used to write long argument strings
function m (a) {
        var b = ["<table class= ' Dynarchcalendar-topcont '", J, "><tr> <td> "," <div class= ' Dynarchcalendar ' > ", E? "<a class= ' Dynarchcalendar-focuslink ' href= ' # ' ></a>": "<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 Migration]javascript Join ("") method, the array into a uniform string, used to write a long output string

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.