2016-08-22 40 views

回答

0

你可以在你正在渲染的动态模板中(在他的rendered函数中)将你的函数包装在template.autorun()块中。

如果您需要从外部关注它,则可以使用跟踪器Deps功能:在autorun块中声明更改。