找回密码
 立即注册

QQ登录

只需一步,快速开始

aisiwo

注册会员

8

主题

18

帖子

56

积分

注册会员

积分
56

活字格认证

[已处理] ie浏览器报错

aisiwo
注册会员   /  发表于:2016-3-31 23:38  /   查看:7021  /  回复:10
未经处理的异常,行 13,列 1074979,在 http://localhost:4138/jqueryeasyui/spreadjs/gcspread.sheets.all.9.40.20153.0.min.js 中

0x800a139e - JavaScript 运行时错误: Attempt to override function while override is not allowed
这是什么原因

10 个回复

倒序浏览
aisiwo
注册会员   /  发表于:2016-4-1 10:38:07
沙发
怎么没人回复
回复 使用道具 举报
dexteryao讲师达人认证 悬赏达人认证 SpreadJS 开发认证
超级版主   /  发表于:2016-4-1 10:47:28
板凳
请提供下完整的demo和ie具体版本,方便我们重现问题
回复 使用道具 举报
aisiwo
注册会员   /  发表于:2016-4-1 14:08:09
地板
$(document).ready(function () {
    //创建Spread对象 制定输出到哪个DOM 元素 及 初始Sheet页个数
    var spread = new GcSpread.Sheets.Spread(document.getElementById("ss"), { sheetCount: 1 });
    spread.tabStripVisible(false);
    spread.tabEditable(false);
    spread.newTabVisible(false);
    //接受父页面传递的菜单ID
    //alert(location.href);
   // menuId = getUrlParam('menuId');
    //填充输入到Spread
    initSpread(spread);

});


function initSpread(spread) {
    //  var colInfos = [];
    //请求后端处理程序 返回JSON数据http://localhost:4138/Handler/ManageDept.ashx
    $.post("/Handler/ManageDept.ashx?action=GetList", function (ds) {
       spread.isPaintSuspended(true);
//        spread.setTabStripRatio(0.8);
        var sheet = spread.getSheet(0);
//       // sheet.setName("Custom binding");
        sheet.autoGenerateColumns = false;
////        debugger;
        //        //绑定列头
      //  DataFields = ds.fields;
        sheet.bindColumns(ds.fields);
//        //绑定数据
        sheet.setDataSource(ds.data);
        spread.isPaintSuspended(false);
      });



};
//加载模板文件
回复 使用道具 举报
aisiwo
注册会员   /  发表于:2016-4-1 14:09:45
5#
用ie11 加载时候报错

    <link href="../jqueryeasyui/demo.css" rel="stylesheet" />
    <link href="../jqueryeasyui/themes/icon.css" rel="stylesheet" />
    <link href="../jqueryeasyui/themes/default/easyui.css" rel="stylesheet" />
    <script src="../jqueryeasyui/jquery.min.js"></script>
     <script src="../jqueryeasyui/jquery.easyui.min.js"></script>
    <link href="../jqueryeasyui/ccs/gcspread.sheets.excel2013white.9.40.20153.0.css" rel="stylesheet" />
    <script src="../jqueryeasyui/spreadjs/gcspread.sheets.all.9.40.20153.0.min.js"></script>
    <script src="../jqueryeasyui/spreadjs/gcspread.sheets.functions.9.40.20153.0.min.js"></script>
引用的如上
回复 使用道具 举报
aisiwo
注册会员   /  发表于:2016-4-1 14:10:16
6#
在google浏览器中正常显示
回复 使用道具 举报
aisiwo
注册会员   /  发表于:2016-4-1 14:10:18
7#
在google浏览器中正常显示
回复 使用道具 举报
aisiwo
注册会员   /  发表于:2016-4-1 16:57:14
8#
[{"id":"3","text":"总经办","attributes":{"url":"test/WebForm1.aspx","isMenu":false,"FullName":"总经办"},"children":null,"state":null},{"id":"4","text":"财务部","attributes":{"url":"test/WebForm1.aspx","isMenu":false,"FullName":"财务部"},"children":null,"state":null},{"id":"5","text":"销售部","attributes":{"url":"test/WebForm1.aspx","isMenu":false,"FullName":"销售部"},"children":null,"state":null},{"id":"6","text":"一分厂","attributes":{"url":"test/WebForm1.aspx","isMenu":false,"FullName":"一分厂"},"children":[{"id":"7","text":"设备科","attributes":{"url":"test/WebForm1.aspx","isMenu":false,"FullName":"设备科"},"children":null,"state":null},{"id":"8","text":"生产科","attributes":{"url":"test/WebForm1.aspx","isMenu":false,"FullName":"生产科"},"children":null,"state":null}],"state":null},{"id":"9","text":"储运部","attributes":{"url":"test/WebForm1.aspx","isMenu":false,"FullName":"储运部"},"children":null,"state":null},{"id":"10","text":"信息中心","attributes":{"url":"test/WebForm1.aspx","isMenu":false,"FullName":"信息中心"},"children":null,"state":null},{"id":"11","text":"人力资源部","attributes":{"url":"test/WebForm1.aspx","isMenu":false,"FullName":"人力资源部"},"children":null,"state":null}]
回复 使用道具 举报
aisiwo
注册会员   /  发表于:2016-4-1 17:08:17
9#
{"TempFormID":1,"fields":[{"name":"DeptId","displayName":"部门ID","size":100,"formatter":null},{"name":"DeptNo","displayName":"部门编号","size":100,"formatter":null},{"name":"DeptName","displayName":"部门名称","size":100,"formatter":null},{"name":"SuperId","displayName":"上级部门ID","size":100,"formatter":null},{"name":"Path","displayName":"路径","size":100,"formatter":null},{"name":"DispName","displayName":"显示名称","size":100,"formatter":null},{"name":"FullName","displayName":"全名","size":100,"formatter":null},{"name":"IsOrg","displayName":"是机构","size":100,"formatter":null},{"name":"IsOuter","displayName":"是外部","size":100,"formatter":null},{"name":"AdminName","displayName":"管理员名称","size":100,"formatter":null}],"data":[{"DeptId":1,"DeptNo":"_out","DeptName":"外部机构","SuperId":null,"Path":".1.","DispName":"","FullName":"外部机构","IsOrg":1,"IsOuter":1,"AdminName":""},{"DeptId":2,"DeptNo":"_root","DeptName":"A公司","SuperId":null,"Path":".2.","DispName":"","FullName":"A公司","IsOrg":1,"IsOuter":0,"AdminName":""},{"DeptId":3,"DeptNo":"01","DeptName":"总经办","SuperId":2,"Path":".2.3.","DispName":"","FullName":"总经办","IsOrg":0,"IsOuter":0,"AdminName":""},{"DeptId":4,"DeptNo":"02","DeptName":"财务部","SuperId":2,"Path":".2.4.","DispName":"","FullName":"财务部","IsOrg":0,"IsOuter":0,"AdminName":""},{"DeptId":5,"DeptNo":"03","DeptName":"销售部","SuperId":2,"Path":".2.5.","DispName":"","FullName":"销售部","IsOrg":0,"IsOuter":0,"AdminName":""},{"DeptId":6,"DeptNo":"04","DeptName":"一分厂","SuperId":2,"Path":".2.6.","DispName":"","FullName":"一分厂","IsOrg":0,"IsOuter":0,"AdminName":""},{"DeptId":7,"DeptNo":"0401","DeptName":"设备科","SuperId":6,"Path":".2.6.7.","DispName":"","FullName":"一分厂设备科","IsOrg":0,"IsOuter":0,"AdminName":""},{"DeptId":8,"DeptNo":"0402","DeptName":"生产科","SuperId":6,"Path":".2.6.8.","DispName":"","FullName":"一分厂生产科","IsOrg":0,"IsOuter":0,"AdminName":""},{"DeptId":9,"DeptNo":"05","DeptName":"储运部","SuperId":2,"Path":".2.9.","DispName":"","FullName":"储运部","IsOrg":0,"IsOuter":0,"AdminName":""},{"DeptId":10,"DeptNo":"06","DeptName":"信息中心","SuperId":2,"Path":".2.10.","DispName":"","FullName":"信息中心","IsOrg":0,"IsOuter":0,"AdminName":""},{"DeptId":11,"DeptNo":"07","DeptName":"人力资源部","SuperId":2,"Path":".2.11.","DispName":"","FullName":"人力资源部","IsOrg":0,"IsOuter":0,"AdminName":""}]}
回复 使用道具 举报
aisiwo
注册会员   /  发表于:2016-4-1 17:09:26
10#
下面这个是fields表示列,"data"表示对应的数据
回复 使用道具 举报
12下一页
您需要登录后才可以回帖 登录 | 立即注册
返回顶部