Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在用 Ionic & Angular 编写一个应用程序。我正在使用 ion-slides 组件,我想启动一个脚本来重新计算每次更换幻灯片时的全部金额......你能向我解释一下怎么做吗?有通用事件吗?感谢您到目前为止的阅读。
好的,我自己找到的:
在 html 中:
<ion-slides (ionSlideDidChange)="slideChanged()">
在 ts 中:
slideChanged() { console.log('Slide changed'); }