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);
    }
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);
    }
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 ) ; }
The process to JS HTML Tag.

@param string $file
@param bool   $nest

@return null
The process to JS HTML Tag .