阅读AngularJS文档我还没弄清楚是否$anchorScroll可以有一个持续时间/缓动选项来平滑滚动到元素.
$anchorScroll
它只说:
$location.hash('bottom'); // call $anchorScroll() $anchorScroll();
我不使用jquery而不想; 是否还有一种聪明而简单的方法来制作或扩展$anchorScroll以使滚动更加流畅?
javascript scroll angularjs anchor-scroll
anchor-scroll ×1
angularjs ×1
javascript ×1
scroll ×1