framework/helpers/BaseHtml.php
public static function jsFile($url, $options = [])
    {
        $options['src'] = Url::to($url);
        if (isset($options['condition'])) {
            $condition = $options['condition'];
            unset($options['condition']);
            return self::wrapIntoCondition(static::tag('script', '', $options), $condition);
        }

        return static::tag('script', '', $options);
    }
public static function jsFile($url, $options = [])
    {
        $options['src'] = Url::to($url);
        if (isset($options['condition'])) {
            $condition = $options['condition'];
            unset($options['condition']);
            return self::wrapIntoCondition(static::tag('script', '', $options), $condition);
        }

        return static::tag('script', '', $options);
    }
public static function jsFile ( $ url , $ options = [ ] ) { $ options [ 'src' ] = Url :: to ( $ url ) ; if ( isset ( $ options [ 'condition' ] ) ) { $ condition = $ options [ 'condition' ] ; unset ( $ options [ 'condition' ] ) ; return self :: wrapIntoCondition ( static :: tag ( 'script' , '' , $ options ) , $ condition ) ; } return static :: tag ( 'script' , '' , $ options ) ; }
Generates a script tag that refers to an external JavaScript file.
@param string $url the URL of the external JavaScript file. This parameter will be processed by [[Url::to()]].
@param array $options the tag options in terms of name-value pairs. The following option is specially handled:

- condition: specifies the conditional comments for IE, e.g., `lt IE 9`. When this is specified,
the generated `script` tag will be enclosed within the conditional comments. This is mainly useful
for supporting old versions of IE browsers.

The rest of the options will be rendered as the attributes of the resulting script tag. The values will
be HTML-encoded using [[encode()]]. If a value is null, the corresponding attribute will not be rendered.
See [[renderTagAttributes()]] for details on how attributes are being rendered.
@return string the generated script tag
@see Url::to()
Generates a script tag that refers to an external JavaScript file . @param string $url the URL of the external JavaScript file . This parameter will be processed by [[ Url :: to () ]] . @param array $options the tag options in terms of name - value pairs . The following option is specially handled :