page中的data赋值出错,怎么处理?
发布于 6 年前 作者 khan 12214 次浏览 来自 问答

在Page中的data:{client:" ",},

然后在函数中使用var client = crypto.createDiffieHellman(p, “hex”, g, “hex”);

然后使用:

self.setData({ client: client });

老是出错?这个是什么原因?

1 回复

notifyDevice is run cj_1_1.1.1 : [object Object]

VM33:1 thirdScriptError

Maximum call stack size exceeded;at api notifyBLECharacteristicValueChanged success callback function

RangeError: Maximum call stack size exceeded

    at s (eval at n.call.document (http://127.0.0.1:57830/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:1:1313386)

    at s (eval at n.call.document (http://127.0.0.1:57830/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:1:1313622)

    at s (eval at n.call.document (http://127.0.0.1:57830/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:1:1313622)

    at s (eval at n.call.document (http://127.0.0.1:57830/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:1:1313622)

    at s (eval at n.call.document (http://127.0.0.1:57830/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:1:1313622)

    at s (eval at n.call.document (http://127.0.0.1:57830/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:1:1313622)

    at s (eval at n.call.document (http://127.0.0.1:57830/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:1:1313622)

    at s (eval at n.call.document (http://127.0.0.1:57830/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:1:1313622)

    at s (eval at n.call.document (http://127.0.0.1:57830/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:1:1313622)

    at s (eval at n.call.document (http://127.0.0.1:57830/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:1:1313622)

回到顶部