baidu / san

A fast, portable, flexible JavaScript component framework
https://baidu.github.io/san/
MIT License
4.72k stars 549 forks source link

表达式中的函数必须是先在组件中声明的吗? #724

Closed 314new closed 2 years ago

314new commented 2 years ago

image image

sanjs version: 3.12.0

表达式中的函数必须为组件中定义的函数对吗?如果是通过对象传递过来的函数不能在表达式中执行?

errorrik commented 2 years ago

是的。插值中使用的 method,必须是组件的 method

314new commented 2 years ago

是的。插值中使用的 method,必须是组件的 method

好的,多谢