知识点

it2022-05-05  158

1.

Extjs 布局:布局一定要最后写,才能生效

2.

Ext.defined("My.cool.Class",{address:"ag"})

相当于 function My.cool.Class(){} My.cool.Class.prototype.address="ag";

3.

Ext.apply(t,{age:12})t.age //12ps: t可以是object 或者 function

4.singleton : Boolean直接实例化这个类Ext.define('Logger', { singleton: true, log: function(msg) { console.log(msg); }});

Logger.log('Hello');

转载于:https://www.cnblogs.com/haigui-zx/p/6409649.html


最新回复(0)