amis icon indicating copy to clipboard operation
amis copied to clipboard

数据作用域问题

Open icodingx opened this issue 6 years ago • 1 comments

page 等价于全局变量,因为顶级渲染器就是它,所以下面的所有组件都能用到这个里面的数据。 params 中的数据 如果地址栏中也携带了参数,也会 merge 到该层的数据中。

可否给一个示例,如何用 params 取地址栏中也携带了参数?

icodingx avatar Jan 11 '20 15:01 icodingx

tpl使用${xxx}

或者xxxOn里使用data.xxx

RickCole21 avatar Jan 12 '20 01:01 RickCole21