cache.put()存入数组异常 #4638
Closed
Luoyacheng
started this conversation in
General
Replies: 1 comment 5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
用cache.put存个数组[]
再cache.get,得到的是org.mozilla.javascript.NativeArray@4f890f2
直接pp=cache.get('xx')
pp[0],会提示“java.lang.String” 没有名为 “0” 的公共实例字段或方法。
如果换成cache.putMemory()和cache.getFromMemory()就是正常的。
大佬们,是不是cache.get得到的数组变量在js里还得咋转化一下啊。
Beta Was this translation helpful? Give feedback.
All reactions