Home  >  Article  >  Backend Development  >  网页-关于调用jQuery ajax交互的原理问题

网页-关于调用jQuery ajax交互的原理问题

WBOY
WBOYOriginal
2016-06-02 11:32:081030browse

ajax网页javascrpitjqueryphp

比如这样的代码

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

通过浏览器开发者模式查看
实际上是访问了 http://www.xxx.com/chk_user.php?ajax=checkuser&username=123456&_=1430449833478 这个网页
那这个_=1430449833478参数是怎么回事?我直接访问这个地址会返回一个错误,所以我猜这最后一个参数是一个随机数或者时间,用来过滤非法访问。
那么它是怎么计算出来的?
小弟看了半天源代码,实在是搞不懂,麻烦知道的指点下,谢谢

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn