测试.php
$aaa = $_POST['aaa'];
echo $aaa;
Javascript代码
$.ajax({
url: 'ajax/test.php',
data: { aaa: 'names_' },
success: function(data) {
alert("Data Loaded: " + data);
}
});
警报响应是:
NOTICE: Undefined Index: aaa
什么可能导致这种情况?