Web page-about the principle of invoking jquery Ajax interaction

Source: Internet
Author: User
Keywords Ajax Web page javascrpit jquery php
Ajax Web Page javascrpitjqueryphp

For example, code like this

 $.ajax({                'url': '/chk_user.php',                'type': 'get',                'data': {                    'ajax': 'checkuser',                    'username': value                },                'cache': false,                'async': false,                'success': function(data) {                    redata = data;                }            });

View by browser developer mode
is actually visiting the http://www.xxx.com/chk_user.php?ajax=checkuser&username=123456&_=1430449833478 page.
What about this _=1430449833478 parameter? My direct access to this address will return an error, so I guess this last parameter is a random number or time to filter for illegal access.
So how did it come to be calculated?
Little brother looked at a half-day source code, really do not understand, trouble to know the guidance under, thank you

  • 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.