ajaxを介してphpファイルを呼び出す必要があります。私は次のことを試しました:
<html>
<script type="text/javascript">
setInterval(function(){
test();
},3000);
function test(){
$.ajax({
type: "POST",
url: "GetMachineDetail.php",
data: "{}",
success: function(response){
alert("suceccess");}
});
}
単純な javascript jquery 呼び出しです...しかし、ajax が見つからないというエラーが発生しました。
質問:この問題を解決するにはどうすればよいですか?