草庐IT

textBytes

全部标签

javascript - 错误 : Can't access lexical declaration

lettextBytes=ctypes.uint8_t("hello");leta=newSECItem;a.type=siBuffer;a.data=textBytes.address();a.len=textBytes.length;我收到ReferenceError:初始化前无法访问词法声明textBytes。 最佳答案 我无法重现你得到的引用错误,但我认为改变lettextBytes=ctypes.uint8_t("hello");因为这会抛出TypeError:expectedtypeuint8_t,got"hello"t