如圖所示,toast彈框會顯示一個進度條,如何在toast插件配置中禁用這個進度條?
Jquery Toast Plugin文檔
光陰似箭催人老,日月如移越少年。
相信我,只要這么做。修改下面這個配置
hideAfter: false
源代碼為證:
canAutoHide: function () {
return ( this.options.hideAfter !== false ) && !isNaN( parseInt( this.options.hideAfter, 10 ) );
},
processLoader: function () {
// Show the loader only, if auto-hide is on and loader is demanded
if (!this.canAutoHide() || this.options.loader === false) {
return false;
}
.......