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.
我使用了 pace.js 作为我的进度条,但它仅在页面加载或重新加载以及它想要加载从 ajax 或 $http 调用接收的数据时显示,而不是在此之前。单击按钮后我应该怎么做才能开始速度?
刚刚从 API 文档中发现,您可以在单击按钮时使用 Pace.restart() 函数,例如 `