You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "Hanks Zhang (JIRA)" <ji...@apache.org> on 2018/02/08 02:27:00 UTC
[jira] [Commented] (WEEX-208) 两个结构类似的数据合并前,产生数据污染
[ https://issues.apache.org/jira/browse/WEEX-208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16356390#comment-16356390 ]
Hanks Zhang commented on WEEX-208:
----------------------------------
你好,建议用英语提 issue。
这可能是 console.log 计算 var1 值时的延迟,因为里边的属性都是 getter,console 输出后你把它展开了才计算里边的值,打印的都是 var1 的引用,内容也是一样的。试试用 console.log(JSON.stringify(var1)) 打印出来的结果对不对。
Maybe it's a delay when console.log calculating the value of `var1`. You can try `console.log(JSON.stringify(var1))` to print the value.
> 两个结构类似的数据合并前,产生数据污染
> -------------------
>
> Key: WEEX-208
> URL: https://issues.apache.org/jira/browse/WEEX-208
> Project: Weex
> Issue Type: Bug
> Components: Web Renderer
> Affects Versions: 0.12
> Reporter: 华逢义
> Assignee: Danz He
> Priority: Major
> Attachments: Catch(02-07-15-24-02).jpg, Catch367C(02-07-15-24-02).jpg
>
> Original Estimate: 12h
> Remaining Estimate: 12h
>
> 代码:
>
> !Catch(02-07-15-24-02).jpg!
> LOG:
> !Catch367C(02-07-15-24-02).jpg!
>
>
> 数据污染了,合并前并没有任何操作,但是没定义var1["2"]的visibility,仍然被初始化为visibility=2
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)