src/Leevel/Http/JsonResponse.php
public function setCallback(?string $callback = null): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->callback = $callback;

        return $this->updateContent();
    }
public function setCallback(?string $callback = null): IResponse
    {
        if ($this->checkFlowControl()) {
            return $this;
        }

        $this->callback = $callback;

        return $this->updateContent();
    }
设置 JSONP 回调.

@param null|string $callback

@return $this