当前位置:网站首页>分享一下自己最近写项目遇到的小问题
分享一下自己最近写项目遇到的小问题
2022-04-22 12:25:00 【云墨-款哥的博客】
问题一:组件化开发banner图时,使用var prev = $(’.ui-slider-arrow .left’,ui);这种方式那不到我想要的元素
-
this指向函数的调用者,在Uislider方法中,this指向.ui-slider,将this赋值给变量ui。
例如:var wrap= $(’.ui-slider-wrap’,ui);这句代码的意思是在.ui-slider中选取.ui-slider-wrap元素。 -
定义和调用时的名字保持一致

我的问题出现在选择器书写错误(问题点比较弱智)

这里我的ui-slider在HTML结构中是一个类,正确应该是$(’.ui-slider’).Uislider();
下面的截图是html结构

问题二:我把这些代码,都修改完之后,发现小圆点点击还是无法实现图片切换
发现了问题出现在下面

这里使用a标签做标记原点,一定要记得给a标签的href属性添加#值,或者javascript:0让其去除默认行为

版权声明
本文为[云墨-款哥的博客]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_56026872/article/details/117199315
边栏推荐
猜你喜欢

JS基础13

MySQL 5.0安装教程图解详细教程

LeetCode 617、合并二叉树

订货系统打破批发企业瓶颈期,助力企业数字化转型

Tencent cloud domain name binding

Comparison of data protection modes between Oracle data guard and Jincang kingbasees cluster

. net treasure API: outputformatter, format output object
![【深入理解TcaplusDB技术】批量删除列表指定位置数据接口说明——[List表]](/img/ed/cccd5dee09d2f0a3e6c788bd265b36.png)
【深入理解TcaplusDB技术】批量删除列表指定位置数据接口说明——[List表]

【深入理解TcaplusDB技术】示例代码——异步调用接口

The ordering system breaks the bottleneck period of wholesale enterprises and helps enterprises with digital transformation
随机推荐
[concurrent programming 047] cache locking performance is better than bus locking. Why not eliminate bus locking?
Ner brief overview
Low frequency (LF) RFID intelligent terminal
【深入理解TcaplusDB技术】更替列表指定位置数据接口说明——[List表]
L3-010 是否完全二叉搜索树 (30 分)
build 知:Makefile
STM32F429BIT6 SD卡模拟U盘
手机摄像头芯片主要有哪些?
LeetCode_ DFS_ Medium_ 200. Number of islands
PyTorch处理RNN输入变长序列padding
What is the lifecycle of automated testing?
【生活中的逻辑谬误】以暴制暴和压制理性
What is the difference between CPU and GPU?
LeetCode 118、杨辉三角
4.21 learning record DP record path (LCS) knapsack on tree (course selection) general tree DP (dance without boss)
ROS2学习笔记(九)从turtlesim学习ROS2的bag录制
Remote monitoring system of greenhouse based on stm32f103c8t6 + esp8266
The fourth play of MySQL learning - detailed explanation of multi table query classification and case exercise source code
What does 0ul or 1ul in STM32 mean?
About the case of server URL