ExtJs

作者: _chuuuing_ | 来源:发表于2017-04-19 23:28 被阅读0次

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

相关文章

网友评论

      本文标题:ExtJs

      本文链接:https://www.haomeiwen.com/subject/mwuhzttx.html