什么是extjs沙箱? [英] What is an extjs sandbox?

查看:99
本文介绍了什么是extjs沙箱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有兴趣了解extjs沙箱,但是无法在网络上找到它。有人可以告诉或指出一些相关的资源,关于一个extjs沙箱是什么,它是如何工作的。感谢提前!

I was interested in knowing about extjs sandbox but wasn't able to find much about it on web. Could someone tell or point to some relevant resource as to what an extjs sandbox is and how does it work. Thanks in advance!

推荐答案

Ext JS沙箱只是顶级命名空间中的一个不同的名称。

An Ext JS sandbox is simply a different name on the top-level namespace.

通常,所有Ext JS代码都位于Ext命名空间下,因此您可以将类引用为Ext.Element,Ext.MessageBox等。沙盒(具体来说,Ext JS 4沙箱)改为使用Ext4(如Ext4.Element中所示),因此您可以使用Ext JS的多个版本,而不用担心命名冲突。有时候他们一起玩得很好,往往没有时间,所以你不能再将Ext4.Elements添加到Ext.Panel中(至少没有相当的努力)。

Normally, all Ext JS code falls under the "Ext" namespace, so you would refer to classes as Ext.Element, Ext.MessageBox, etc. The sandbox (specifically, the Ext JS 4 sandbox) uses "Ext4" instead (as in Ext4.Element), so you can use multiple versions of Ext JS alongside each other without worrying about naming collisions. Sometimes they play well together, often times they do not, so you can't go adding Ext4.Elements to an Ext.Panel (at least, not without considerable effort).

Ext JS分发包括列在沙盒中的文件,您将在项目中引用标准文件。

The Ext JS distribution includes files listed as sandbox that you would reference in your project along with your standard files.

查看 Sandbox示例,以查看它在操作中。您需要使用浏览器的调试器来查看源代码和脚本。

Check out the Sandbox example on the Ext JS docs page to see it in action. You need to use your browser's debugger to view the source and scripts, though.

这篇关于什么是extjs沙箱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆