New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convertObjectLiteralToSetOrMap为什么只转一层? #302
Comments
后来我想了下,还是不修改js的convertObjectLiteralToSetOrMap方法了。 使用 对象+属性 的方式读取fairProps内部层次的数据。 `
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题
我的fairProps有好几层
'fairData': { 'fairProps': { "adsk": null, "spoor": null, "title": null, "banners": [ { "renderTitle": "", "renderDesc": "", "positionIndex": null, "color": null, } ], "initIndex": null, "aspectRatio": 4.0344827586206895, "page": "hotPage", "tabName": null, }, },
但是在读取的时候会把错误:
op_idx is not a function
我自己调试了一下,发现convertObjectLiteralToSetOrMap只转了fairProps最外层的数据,把Object转成Map;但是内层的对象还是Object,但是fair_core.js和fair_jsbase.js没有在Object的原型增加__op_idx__方法。
convertObjectLiteralToSetOrMap为什么只转一层,如果fairProps数据层级很多怎么办?
目前我是自己去fair库里面改的。
环境信息
The text was updated successfully, but these errors were encountered: