$header = ['Content-Type' => 'application/json'];
$response = Response::create(json_encode($newarr), '', 200, $header);
return $response;
快捷键:shuchujson
源:
sublime_text格式
<snippet>
<content><![CDATA[
\$header = ['Content-Type' => 'application/json'];
\$response = Response::create(json_encode(\$newarr), '', 200, \$header);
return \$response;
]]></content>
<tabTrigger>shuchujson(fastadmin输出json结果)</tabTrigger>
<scope></scope>
</snippet>
发表评论 取消回复