7月第四周

7.24

CSS3 属性之 transform & translation

transform:

transform属性
transform属性

translation:

transition 属性是一个简写属性,用于设置四个过渡属性:

  • transition-property
  • transition-duration
  • transition-timing-function
  • transition-delay

JQuery获取当前窗口信息

方法 解释 输出
window.location.href 设置或获取整个 URL 为字符串。 http://localhost:8086/topic/index?topicId=361
window.location.pathname 设置或获取对象指定的文件名或路径。 /topic/index
window.location.port 设置或获取与 URL 关联的端口号码。 8086
window.location.protocol 设置或获取 URL 的协议部分。 http:
window.location.hash 设置或获取 href 属性中在井号“#”后面的分段。
window.location.host 设置或获取 location 或 [URL]。 http:localhost:8086
window.location.search 设置或获取 href 属性中跟在问号后面的部分。 ?topicId=361

以这个网址为例  http://localhost:8086/topic/index?topicId=361

方法 解释 输出
window.location.href 设置或获取整个 URL 为字符串。 http://localhost:8086/topic/index?topicId=361
window.location.pathname 设置或获取对象指定的文件名或路径。 /topic/index
window.location.port 设置或获取与 URL 关联的端口号码。 8086
window.location.protocol 设置或获取 URL 的协议部分。 http:
window.location.hash 设置或获取 href 属性中在井号“#”后面的分段。
window.location.host 设置或获取 location 或 [URL]。 http:localhost:8086
window.location.search 设置或获取 href 属性中跟在问号后面的部分。 ?topicId=361

7.28

  • vue加载swiper 初始化会默认滑到最后一个slider-item
    可以用setTimeOut解决,延迟swiper的初始化
  • vue动态数据加载的元素无法在DOM树中查找到,不能直接使用addClass来实现点击的active,此时可以结合v-bind:class来实现,
    例如使用V-for循环加载数据时,可以通过获取点击节点的index来实现添加active
发布了42 篇原创文章 · 获赞 34 · 访问量 8万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章