我有一个简单的脚本并使用 extjs 4.1.1:
<html>
<head>
<link rel="stylesheet" type="text/css" href="ext-all.css">
</style>
<script type="text/javascript" src="js/ext-all.js"></script>
<script>
Ext.onReady(function() {
Ext.create('Ext.Panel', {
width: 200,
height: 200,
renderTo: Ext.getBody(),
layout: {
type: 'table',
columns: 2
},
defaults: {
frame: true,
width: 200,
height: 200
},
items: [test()]
})
})
function test() {
return Ext.createWidget('tabpanel', {
title: null,
rowspan: 2,
width: 100,
height: 200,
activeTab: 0,
items: [{
name: 'test',
title: 'test'
}]
})
}
</script>
</head>
<body></body>
</html>
此脚本使 IE9 崩溃。为什么 ?