{#expression} (Unbound Expressions)
Data updates behave as you would expect in JavaScript. Primitives, such as String , are passed by value, and data updates for the
expression in the parent and child are decoupled.
Objects, such as Array or Map , are passed by reference, so changes to the data in the child propagate to the parent. However,
change handlers in the parent aren’t notified. The same behavior applies for changes in the parent propagating to the child.{!expression} (Bound Expressions)
Data updates in either component are reflected through bidirectional data binding in both components. Similarly, change handlers
are triggered in both the parent and child components.
Salesforce Lightning {!expression}和{#expression}的区别
最新推荐文章于 2024-03-28 11:40:37 发布