瀏覽代碼

Added primitive ajax.php for testing

Foppe Hemminga 6 年之前
父節點
當前提交
f13c13bfe8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ajax.php

+ 1 - 1
ajax.php

@@ -29,5 +29,5 @@ function test_function()
 	$return["favorite_restaurant"] = "McDonald's";
 
 	$return["json"] = json_encode($return);
-	echo json_encode($return);
+	echo $_GET['callback'] . '(' . json_encode($return ). ')';
 }