收藏
回答

点击事件,Maximum call stack size exceeded异常

框架类型 问题类型 操作系统 工具版本
小程序 Bug macOS 1.06.2401020

点击第一次可以提交到后台并响应,但是当点第二次的时候,就直接抛出以下异常,我其他接口也是这样写的,但是没事,就这个接口会出现这样的情况

RangeError: Maximum call stack size exceeded

    at Function.value (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)(env: Windows,mp,1.06.2401020; lib: 2.29.1)

RangeError: Maximum call stack size exceeded

    at Function.value (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)

    at n (WASubContext.js?t=wechat&s=1706777125087&v=2.29.1:1)(env: Windows,mp,1.06.2401020; lib: 2.29.1)

回答关注问题邀请回答
收藏

1 个回答

  • 工号 9527
    工号 9527
    02-01

    自查吧,感觉是你的代码问题

    02-01
    有用
    回复 1
    • 刺猬
      刺猬
      02-02
      我也怀疑过,但是我把这块代码放到别的页面,就可以正常执行,而且我把wx.request中的逻辑去掉,依然报错
      02-02
      回复
登录 后发表内容