Skip to content
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

Revert "在JavaScript中所有函数的参数都是按值传递而非引用传递" #184

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/guide/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ prop 是单向绑定的:当父组件的属性变化时,将传导给子组件

2. 定义一个基于 prop 值的计算属性。

<p class="tip">注意在 JavaScript 中对象和数组是引用类型,指向同一个内存空间,如果 prop 是一个对象或数组,在子组件内部改变它**会影响**父组件的状态。</p>
<p class="tip">注意在 JavaScript 中对象和数组是通过引用传递的,如果 prop 是一个对象或数组,在子组件内部改变它**会影响**父组件的状态。</p>

### Prop 验证

Expand Down