起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1200|回复: 1

[处理中3] maximum call stack size exceeded

[复制链接]

11

主题

24

帖子

58

积分

初级会员

Rank: 2

积分
58
QQ
发表于 2017-11-16 17:08:19 | 显示全部楼层 |阅读模式
我页面的JS里面代码如下:
Model.prototype.baasData1BeforeRefresh = function(event){
                var myfilter="fUserID is null";
        this.comp("baasData1").setFilter("myfilter", myfilter);
         this.comp("baasData1").refreshData();
        var self = this;
        justep.Baas.sendRequest({
                      "url" : "/laojiang/laojiang",
               "action" : "GetDeliverlyCount",
               "async" : false,
               "params" : {},
               "success" : function(data) {
                       $(self.getElementByXid("span7")).text(data.count);
                       $(self.getElementByXid("span10")).text(data.count);
                       $(self.getElementByXid("span54")).text(data.count);
               }
           });   

        };

        Model.prototype.li6Click = function(event){
                var row=event.bindingContext.$object;
        var id=row.getID();
        justep.Shell.showPage(require.toUrl('./sub.w'), {
                                'id' : id
       });
        };

        Model.prototype.baasData2BeforeRefresh = function(event){
                var myfilter="fUserID ='"+justep.Shell.userId.latestValue+"' and fisDelivery='未送货'";
        this.comp("baasData2").setFilter("myfilter", myfilter);
        this.comp("baasData2").refreshData();
        var self = this;
        justep.Baas.sendRequest({
                      "url" : "/laojiang/laojiang",
               "action" : "GetWaitingSendCount",
               "params" : {
                           "fUserID" : justep.Shell.userId.latestValue
               },
               "async" : false,
               "success" : function(data) {
                      $(self.getElementByXid("span30")).text(data.count);
               }
           });   
        };

        Model.prototype.baasData3BeforeRefresh = function(event){
                var myfilter="fUserID ='"+justep.Shell.userId.latestValue+"' and fisDelivery='已送货'";
        this.comp("baasData3").setFilter("myfilter", myfilter);
        this.comp("baasData3").refreshData();
        var self = this;
         justep.Baas.sendRequest({
                      "url" : "/laojiang/laojiang",
               "action" : "getFinishSendAction",
               "params" : {
                           "fUserID" : justep.Shell.userId.latestValue
               },
               "async" : false,
               "success" : function(data) {
                      var len = data.rows.length;
                      if(len===1){
                        $(self.getElementByXid("span47")).text(data.rows[0].count.value);
                        $(self.getElementByXid("span57")).text(data.rows[0].totalMoney.value);
                      }
               }
           });   
        };

        Model.prototype.li14Click = function(event){
                 var row=event.bindingContext.$object;
        var id=row.getID();
        justep.Shell.showPage(require.toUrl('./wc.w'), {
                                'id' : id
       });
        };

        Model.prototype.li2Click = function(event){
                 var row=event.bindingContext.$object;
        var id=row.getID();
        justep.Shell.showPage(require.toUrl('./detail.w'), {
                                'id' : id
       });
        };

可是当我运行到这个页面的时候报错,提示maximum call stack size exceeded

Error

Error

发表于 2017-11-16 17:27:40 | 显示全部楼层
你有递归或死循环吧!
debugger调试下!看哪个方法不停的执行了!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-6 16:55 , Processed in 0.064032 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表