Error: Converting circular structure to JSON解决方法

Posted CN-Dust

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error: Converting circular structure to JSON解决方法相关的知识,希望对你有一定的参考价值。

Cocos Creator做微信小游戏的时候点击按钮出现如下报错

VM76 WAGame.js:2 Error: Converting circular structure to JSON
    --> starting at object with constructor 'Object'
    |     property '_parent' -> object with constructor 'Object'
    |     property '_children' -> object with constructor 'Array'
    --- index 0 closes the circle

检查button组件绑定的函数传参时有没有考虑第一个参数是target,第二个参数才是传入的参数。

以上是关于Error: Converting circular structure to JSON解决方法的主要内容,如果未能解决你的问题,请参考以下文章

Error in nextTick: “TypeError: Converting circular structure to JSON

Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files defi

Error:Error converting bytecode to dex:Cause: com.android.dex.DexException: Multiple dex files defin

Error:Error converting bytecode to dex:Cause: com.android.dex.DexException: Multiple dex files defin

C - error: converting to execution character set:Illegal byte sequence

Arithmetic overflow error converting numeric to data type numeric错误解决