初学ExtJs求救于高手
var tabPanel = new Ext.TabPanel(
{
region : 'center',
enableTabScroll : true,
deferredRender : false,
activeTab : 0,
items :[
title: "导航",
autoLoad: "index.html"
//html: ""
]
});
index.html
<html>
<head>
<title>index.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
P{size:5px; color:red;}
</style>
<script type="text/javascript">
function verify()
{
alert("hello");
}
</script>
</head>
<body>
<input type="button" value="单击" onclick="verify()"/>
<p>你好吗?</p>
</body>
</html>
问题:
当页面加载的时候,index.html <body>里面的内容显示出来了,但是以外就不能识别,这里出现verify()方法没有定义,<p>标签也没有发生字体和颜色的变化,但按钮和<p>里面的内容能正常显示出来。
求救各路兄弟姐妹,怎样才能把一个页面完全加载进来,谢谢了。