猿问

Jquery Toast Plugin如何禁用进度条?

如图所示,toast弹框会显示一个进度条,如何在toast插件配置中禁用这个进度条?

Jquery Toast Plugin文档


互换的青春
浏览 452回答 1
1回答

富国沪深

相信我,只要这么做。修改下面这个配置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;  }  .......
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答