当我单击运行按钮时,在 chrome 控制台中显示此错误并且不提醒任何内容
POST http://mysite/gd/add.php 503 (Service Unavailable)
索引.php
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body >
<script>
function go(){
$.ajax({ url: 'add.php',
data: {'q': ''},
type: 'post',
success: function(output) {
alert(output);}
});
}
</script>
<button onclick="go();">Run</button>
</body>
</html>
添加.php
<?php echo "Hello"; ?>