如何仅在某些链接上激活 smoothState.js

How to activate smoothState.js only on certain links

我知道有一种方法可以通过添加以下内容来禁用某些 link 的 smoothState.js:

blacklist: '.no-smoothState'

但是有没有办法为每个 link 禁用它,然后有选择地选择要激活 smoothState.js 的 link?

我想通了:

anchors: 'a.smoothState',
forms: 'form.smoothState'

几周前我试过了,当时不行,现在可以了。