7.24
CSS3 属性之 transform & translation
transform:
transform属性
translation:
transition 属性是一个简写属性,用于设置四个过渡属性:
- transition-property
- transition-duration
- transition-timing-function
- transition-delay
JQuery获取当前窗口信息
方法 | 解释 | 输出 | window.location.href设置或获取整个 URL 为字符串。http://localhost:8086/topic/index?topicId=361window.location.pathname设置或获取对象指定的文件名或路径。/topic/indexwindow.location.port设置或获取与 URL 关联的端口号码。8086window.location.protocol设置或获取 URL 的协议部分。http:window.location.hash设置或获取 href 属性中在井号“#”后面的分段。window.location.host设置或获取 location 或 [URL]。http:localhost:8086window.location.search设置或获取 href 属性中跟在问号后面的部分。?topicId=361以这个网址为例 http://localhost:8086/topic/index?topicId=361
方法 | 解释 | 输出 | window.location.href设置或获取整个 URL 为字符串。http://localhost:8086/topic/index?topicId=361window.location.pathname设置或获取对象指定的文件名或路径。/topic/indexwindow.location.port设置或获取与 URL 关联的端口号码。8086window.location.protocol设置或获取 URL 的协议部分。http:window.location.hash设置或获取 href 属性中在井号“#”后面的分段。window.location.host设置或获取 location 或 [URL]。http:localhost:8086window.location.search设置或获取 href 属性中跟在问号后面的部分。?topicId=3617.28
- vue加载swiper 初始化会默认滑到最后一个slider-item
可以用setTimeOut解决,延迟swiper的初始化 - vue动态数据加载的元素无法在DOM树中查找到,不能直接使用addClass来实现点击的active,此时可以结合v-bind:class来实现,
例如使用V-for循环加载数据时,可以通过获取点击节点的index来实现添加active