找回密码
 立即注册

QQ登录

只需一步,快速开始

1594202459

注册会员

31

主题

48

帖子

163

积分

注册会员

积分
163

活字格认证

1594202459
注册会员   /  发表于:2014-12-19 15:10  /   查看:4012  /  回复:1




请问        window.setTimeout(function () {
                        hideLoading();
                        try {
                            if (window.location.href.indexOf("sample=Expense") === -1) {
                                return;
                            }

                            var sd = JSON.parse(data);
                            if (sd.length > 0) {
                                var spread = $("#ss").wijspread("spread");
                                if (!spread) {
                                    return;
                                }
                                spread.isPaintSuspended(true);

                                spread.fromJSON(sd[0]);
                                spread.useWijmoTheme = true;
                                spread.isPaintSuspended(false);
                            }
                        } catch (ex) {
                        }
                    }, 800);
  这段代码的意思是什么

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

1 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2014-12-19 18:24:00
沙发
回复 1楼1594202459的帖子

spread.isPaintSuspended(true);挂起重新绘制机制
spread.isPaintSuspended(false);使 SpreadJS 重新绘制

以上两行代码的作用是使SpreadJS 一次性重绘节省性能。帮助文档地址:
http://helpcentral.componentone. ... PaintSuspended.html

spread.fromJSON(sd[0]);从json串中实例化SpreadJS。
帮助文档地址:http://helpcentral.componentone. ... pread~fromJSON.html

spread.useWijmoTheme = true;声明 SpreadJS 是否使用 Wijmo 主题。
帮助文档地址:
http://helpcentral.componentone. ... ~useWijmoTheme.html
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部