52,797
社区成员
发帖
与我相关
我的任务
分享
ajax.open('GET', 'check.php?value=' + value, true); //value为需要验证的数据
ajax.onreadystatechange = function() {
if (ajax.readyState == 4 && ajax.status == 200) {
alert(ajax.responseText);
}
}
ajax.send(null);
if (isset($_GET['value'])) {
header('Cache-Control:no-cache,must-revalidate');
header('Content-Type:text/html;charset=utf-8';
echo is_float($_GET['value']);
}