ExtJs

ExtJs docu

基本语法

Ext.define(className, members, onClassCreated); to create a class

// className: The class name
// members: is an object that represents a collection of class members in key-value pairs
// onClassCreated: is an optional function callback that is invoked when all dependencies of the defined class are ready and the class itself is fully created. Due to the asynchronous nature of class creation, this callback can be useful in many situations. These will be discussed further in [Section IV](https://docs.sencha.com/extjs/6.0.1/guides/core_concepts/classes.html#Errors_Handling__amp__Debugging)

Ext.create() to create a new instance of a class

Ext.getDisplayName() to get the display name of any method. This is especially useful for throwing errors that have the class name and method name in their description:
throw new Error('['+ Ext.getDisplayName(arguments.callee) +'] Some message here');

ExtJs MVC

Tutorial

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容