miui.version is an object reporting MobileUI version being used.
mui.version object has the following attributes and methods:
mui.version.major
mui.version.minor
mui.version.maintenance
mui.version.toString()
Quick example
Console.log(mui.version.toString());