我的代码是这样的:
<!DOCTYPE html>
<html>
<head>
${load("Include.html")}
<link rel="stylesheet" type="text/css" href="/scripts/Spread.Sheets/css/gc.spread.sheets.excel2013white.10.0.1.css" />
<script type="text/javascript" src="/scripts/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="/scripts/Spread.Sheets/scripts/gc.spread.sheets.all.10.0.1.min.js"></script>
<script type="text/javascript" src="/Pages/Views/TJBB/SpreadLicense.js"></script>
<script type="text/javascript" src="/Pages/Views/TJBB/Spread.FYTJ_Report.js"></script>
<title>付油统计页面</title>
<script type="text/javascript">
$(function () {
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("SpreadGrid"), {
sheetCount: 1
});
initSpread(spread);
});
//初始化Spread
function initSpread(spread) {
var sheet = spread.getActiveSheet();
spread.options.isProtected = true;
spread.fromJSON(Spread_FYTJ_Report);
}
</script>
</head>
<body class="easyui-layout">
<div style="padding:1px;" data-options="region:'center',collapsible:false">
<div id="SpreadGrid" style="height:500px;"></div>
</div>
</body>
表格依然可以修改,有什么注意的地方吗?我看网站示例:表单保护,这个却是可以保护的。
|
|