src/Leevel/View/Compiler.php
protected function parseJcontent(string $content): string
    {
        $var = explode('|', $content);
        $content = array_shift($var);

        $content = $this->parseExpression($content);

        if (count($var) > 0) {
            return $this->parseJsFunction($content, $var);
        }

        return $content;
    }
protected function parseJcontent(string $content): string
    {
        $var = explode('|', $content);
        $content = array_shift($var);

        $content = $this->parseExpression($content);

        if (count($var) > 0) {
            return $this->parseJsFunction($content, $var);
        }

        return $content;
    }
解析 JS 变量内容.

@param string $content

@return string