在Page中的data:{client:" ",},
然后在函数中使用var client = crypto.createDiffieHellman(p, “hex”, g, “hex”);
然后使用:
self.setData({ client: client });
老是出错?这个是什么原因?
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)