One of my front-end architectures--Unified Extension JS method

Source: Internet
Author: User

My front-end schema rollup

Myjs_core.js

This is a core JS file, it expands the native JS method. As follows:

Array object:1)    indexOf2)    max3)    min4)    removeAt5)    insertAt6    ) INTERSECT8)    MINUS9)    Recursion10)    last11) distinct12) to13    String object: 1)    Indexfrom: case-insensitive to find. 2)    format: Use the index for parameterization. 3)    Formatex: Use JSON for parameterization. 4)    is: case insensitive. 5)    padLeft6)    padRight7)    trim8)    GETCN: Find out Chinese 9) toTimeString10    )    Bytelen: Up to the size of bytes 11)    getDate12)    ISGUID13)    Mysplit: Returns a non-empty collection of objects. Insert    : Inserts a string at one location)    split to resolve different browser split is not uniform situation.
Date object:1) toString: Supports format string: YYYY-MM-DD2) Add: Add TimeSpan Data (TimeSpan is date.valueof () data) 3) addSeconds4) ADDDAYS5) addMonths6) getendofmonthdate: The date of the last day of the month.
Number object:1) toFixed Unified Support because some browsers do not support it.

One of my front-end architectures--Unified Extension JS method

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.