在调用 rich-text 中 Maximum call stack size exceeded?

发布于 6 年前作者 vmeng15222 次浏览最后编辑 6 年前来自 issues

组件:rich-text

微信版本号 1.02.1907300

调试基础库:2.8.3

RangeError: Maximum call stack size exceeded

    at e (:24865/appservice/WAWebview.js:1)

    at e (:24865/appservice/WAWebview.js:1)

    at e (:24865/appservice/WAWebview.js:1)

    at e (:24865/appservice/WAWebview.js:1)

    at e (:24865/appservice/WAWebview.js:1)

    at e (:24865/appservice/WAWebview.js:1)

    at e (:24865/appservice/WAWebview.js:1)

    at e (:24865/appservice/WAWebview.js:1)

    at e (:24865/appservice/WAWebview.js:1)

    at e (:24865/appservice/WAWebview.js:1)

3 回复
xia93
xia931 楼6 年前

麻烦提供能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

lei05
lei052 楼6 年前

这个问题有决绝方案了么

jie16
jie163 楼5 年前

<rich-text nodes=“{{contents}}”></rich-text>

这是一个详情页面的请求   根据id 请求信息

    var data = {

            id:options.id,

     }

     app.wxRequest(‘POST’, url, data, (res) => {

            let content = res.data.content;

            that.data.contents=‘’;

            that.data.contents = content.replace(/\<img/gi, '<img class=“imgwidth” ');

            that.setData({

                resData:res.data,

                contents:that.data.contents

            })

//在此打印数据说明的都有  页面不能渲染

        }, (err) => {})