【问题标题】:After importing the script, the bootstrap slider stops working导入脚本后,引导滑块停止工作
【发布时间】:2019-09-13 15:14:04
【问题描述】:

导入脚本后,引导滑块停止工作。 如果我导入这个脚本:

<script src="http://echarts.baidu.com/build/dist/echarts.js"></script>

在控制台我有这个错误:

jquery.min.js:3 Uncaught TypeError: r.easing[this.easing] is not a function
    at init.run (jquery.min.js:3)
    at i (jquery.min.js:3)
    at Function.r.fx.tick (jquery.min.js:3)
    at eb (jquery.min.js:3)

如果我用导入脚本注释行,一切都很好。

【问题讨论】:

  • 您需要为扩展的缓动选项包含 jQueryUI。
  • 我导入了这个,但没有比这更好的了。我导入这个:gsgd.co.uk/sandbox/jquery/easing 除了导入之外,我还需要做些什么?
  • 我使用css中的函数:transition来移动屏幕

标签: php jquery html ajax bootstrap-4


【解决方案1】:

请按以下步骤操作: i)确保您已导入扩展缓动选项所需的 jQueryUI。

ii) 将您的 Jquery Import 放在所有脚本之上

在你的情况下:把你的&lt;script src="http://echarts.baidu.com/build/dist/echarts.js"&gt;&lt;/script&gt;放在所有脚本的底部

【讨论】:

    猜你喜欢
    • 2019-04-24
    • 2017-09-12
    • 2015-04-16
    • 2011-12-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多