public static function jsCall($file, $nest)
    {
        if (strpos($file, 'http://') !== false) {
            $path = $file.'.js';
        } else {
            if ($nest) {
                $file = str_replace('.', '/', $file);
                $path = path().'assets/js/'.$file.'.js';
            } else {
                $path = $file;
            }
        }

        self::jsTag($path);
    }