尝试在javascript中获取滑动图像

Trying to get sliding images in javascript

本文关键字:图像 获取 javascript      更新时间:2023-09-26

我正在尝试获取滑动图像(请参阅下面的代码摘录):

if(this.slidesCount > 1){
    // navigate "in" or "out"
    this.$slider
        .find('nav > span.sl-prev')
        .on('click.slitslider', function(event){
  1. Uncaught TypeError: Object [object Object] has no method 'on'
  2. Failed to load resource: the server responded with a status of 400 (Bad Request)

我在 JavaScript 中遇到了上述两个错误。如何解决上述问题?
提前谢谢你。

请尝试使用 jquery 1.7 及更高版本。此方法"on"是jquery 1.7及更高版本中添加的新功能。您是否使用1.6及以下版本的较低版本不受支持。