src/Leevel/Router/ResponseFactory.php
public function jsonp(string $callback, $data = null, int $status = 200, array $headers = [], bool $json = false): JsonResponse
    {
        return $this->json($data, $status, $headers, $json)->
        setCallback($callback);
    }
public function jsonp(string $callback, $data = null, int $status = 200, array $headers = [], bool $json = false): JsonResponse
    {
        return $this->json($data, $status, $headers, $json)->
        setCallback($callback);
    }
返回 JSONP 响应.

@param string $callback
@param mixed  $data
@param int    $status
@param array  $headers
@param bool   $json

@return \Leevel\Http\JsonResponse