Microloader (microloader) of Ext JS

"Microloader" is the name of Sencha's data-driven JavaScript and CSS dynamic loader.

list

app.json

For application settings, Sencha Cmd will read this file at build time. Sencha Cmd transforms the contents of "app.json" and passes the resulting manifest to the Microloader for use at runtime. Finally, Ext JS itself consults the runtime manifest for configuration options.

The content of app.json is similar to:
insert image description here

Ext.manifest

When you start the application, you will find that the processing content of "app.json" is loaded as "Ext.manifest". Ext JS 6 uses specified Ext.manifest properties to do things like enable the compatibility layer.

<script>Label

Microloaders are used by including the following code in the page:
<script id="microloader" data-app="12345" type="text/javascript" src="bootstrap.js"></script>
By default, this script tag will be replaced by the build process, but is used to load the application during development. The data application properties should have been generated for you during application scaffolding. This is a unique ID used in local storage to prevent data conflicts.

default and custom

Sencha Cm

Guess you like

Origin blog.csdn.net/oscar999/article/details/132462044