first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?php
// ajax 跨域的第一种方法,后端允许跨域(CROS)
// header("Access-Control-Allow-Origin: *");
// jsonp 1
// 通过 $_GET 获取 get请求参数
$back = $_GET["callback"];
// 定义数组
$list = array(
"title" => "李四",
"like" => array("骑车","编程","打游戏")
);
// jsonp 2
// json_encode 把数组转换成json格式输出给前端
// echo $back."(".json_encode($list).")";
echo json_encode($list);
?>