开发者

ExtJs namespace alias

Is there any way to give a namespace an alias?

ergo i want to do

Ext.ns ( 'somereallylongname' );

and then alias it to 'srln' and be able to do

Ext.ns ( 'srln.panel');

and create it by

Ext.create('somereallylongname.panel');
开发者_运维百科

Example is a bit contrived, but meh.


Try

Ext.ns ( 'somereallylongname' );
var srln = somereallylongname;

added

make sure srln is in global scope

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜