shiyibodec
shiyibodec
2015-06-11 07:30
采纳率: 0%
浏览 1.6k

extj报错IndexOutOfBoundsException: Index: 0, Size: 0

 <!DOCTYPE HTML>
<html manifest="">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="UTF-8">

    <title>test</title>

    <!-- The line below must be kept intact for Sencha Cmd to build your application
    <script id="microloader" type="text/javascript" src="bootstrap.js"></script> -->
    <link rel ="stylesheet" type="text/css" href="ext/packages/ext-theme-neptune/build/resources/ext-theme-neptune-all.css" />
    <script type="text/javascript" src="ext/build/ext-all.js"></script>
    <script type = "text/javascript" src = "ext/packages/ext-theme-neptune/build/ext-theme-neptune.js"></script>
</head>
<body>
<script>
    Ext.define('Person',{
        name : 'xiaozhang',
        sayName : function() {
            console.log(this.name);
        }
    });
    Ext.define('Student',{
        extend : 'Person'
    });

    var student = Ext.create('Student');
    student.sayName();

</script>
</body>
</html>
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • showbo

    什么版本的ext?ext-4.1.1a测试你的代码没有问题

    点赞 评论

相关推荐