当前位置:首页 > 学习ExtJS:面向对象编程基本知识

学习ExtJS:面向对象编程基本知识

点击次数:1567  更新日期:2011-01-05
\n

1:支持命名空
\n

<script type=”text/javascript”>
// 定义一个命名空间
Ext.namespace(“Ext.wentao”);
// 在命名空间上定义一个类
Ext.wentao.helloworld = Ext.emptyFn;
// 创建一个类的实例
new Ext.wentao.helloworld();
</script>

\n