本帖最后由 emzz 于 2022-2-16 01:03 编辑
有没有大佬会的,搞定给红包 |
复制代码 |
这不就一行代码的事么
|
恭喜楼上一行代码拿红包 |
这是返回html,要json啊大佬 |
header(‘content-type:application/json’); $number = array(‘1′,’2′,’3′,’4′,’5′,’6′,’7′,’8′,’9′,’0’); echo json_encode($number); |
不太行,返回500 |
引号改成半角 header("content-type: application/json"); |
复制代码 |
json内容变成了{"data":"123"} |
["1","2","3","4","5","6","7","8","9","0"] |