Get ExtJS Version

I took the PHP + ExtJS project. Unfortunately, there is no documentation. How to find out which version of ExtJS is being used?

In jQuery, we get ver by running "$ (). Jquery;". Anything like that in ExtJS?

+5
source share
4 answers

Two easy ways to do this. First it is from the web browser console.

In ExtJS 3.x:

Ext.version;

In ExtJS 4.x:

Ext.getVersion('extjs');

Or you can look in ext-all-debug.js and check the version number at the top of the script. In all versions related to 1.0, they include the version number at the top of the ext-all-debug script, it can be called something else, but just look around your application hierarchy.

+13
source

Since ExtJS 4.1.1:

Ext.getVersion().version;
+2
source

http://docs.sencha.com/ext-js/4-0/#/api/Ext.Version-method-getVersion

var ver = Ext.getVersion('core');
            if (ver.isLessThan('4.0.1')) {
                Ext.Msg.show({
                   title: 'Err',
                   msg: 'Old version',
                   buttons: Ext.Msg.OK,
                   icon: Ext.Msg.ERROR
               });
+1

javascript.

            var majorVersion;
        var fullVersion;
        if (Ext.version != undefined) {
            majorVersion = Ext.version.substring(0, Ext.version.indexOf("."));
            fullVersion = Ext.version;
        } else {
            majorVersion = Ext.getVersion().getMajor();
            fullVersion = Ext.getVersion().version;
        }
        alert("Ext version:"+majorVersion+" "+fullVersion);
0

All Articles