<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>spreadJS1</title>
<link rel="stylesheet" href="webbuilder/controls/ext/resources/css/ext-all.css" type="text/css">
<link rel="stylesheet" href="webbuilder/css/style.css" type="text/css">
<link rel="stylesheet" href="webbuilder/css/gcspread.sheets.8.40.20151.0.css" type="text/css">
<script type="text/javascript" src="webbuilder/script/locale/wb-lang-zh_CN.js"></script>
<script type="text/javascript" src="webbuilder/controls/ext/ext-all.js"></script>
<script type="text/javascript" src="webbuilder/controls/ext/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="webbuilder/script/wb.js"></script>
<script type="text/javascript" src="webbuilder/script/spreadJS/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="webbuilder/script/spreadJS/gcspread.sheets.all.8.40.20151.0.min.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script language="javascript">
window.onload = function () {
var spread = new GcSpread.Sheets.Spread(document.getElementById('ss'), { sheetCount: 1 });
// get spread object
// var spread = GcSpread.Sheets.findControl(document.getElementById('ss'));
};
</script>
</head>
<body>
<script language="javascript" type="text/javascript">
Ext.onReady(function(){
Wb.initialize(null,480);
Wd.panel1=new Ext.panel.Panel({
id:"panel1",html:"<div class=\"sample-turtorial\" style=\"float:left; width:70%; height:400px;\">\n\n <div id=\"ss\" style=\"width:100%; height:400px;border: 1px solid gray;\">\n <\/div>\n <\/div>\n\n\n\n",renderTo:Ext.getBody()
});
});
</script>
</body>
</html>
编译出来的源码是这样的,不能正常显示效果,是为什么呢?
好像都没找到ss呢,是不是要改成panel的id才行啊? |
|