JavaScript常用脚本汇总(三)
内容摘要
通过数组,拓展字符串拼接容易导致性能的问题
https://gist.github.com/hehongwei44/fe71f10e4d2d9295aeab
页面 视口 滚动条的位置的辅助函数
https://gist.github.com/hehon
https://gist.github.com/hehongwei44/fe71f10e4d2d9295aeab
页面 视口 滚动条的位置的辅助函数
https://gist.github.com/hehon
文章正文
通过数组,拓展字符串拼接容易导致性能的问题
https://gist.github.com/hehongwei44/fe71f10e4d2d9295aeab
页面 视口 滚动条的位置的辅助函数
https://gist.github.com/hehongwei44/62907b9b7061d4defadb
调节元素透明度的函数
https://gist.github.com/hehongwei44/87839cd3b8439aff6a3c
获取鼠标位置的几个通用的函数
https://gist.github.com/hehongwei44/2732365bd42baa491ef8
使用cssdisplay属性来切换元素可见性的一组函数
https://gist.github.com/hehongwei44/b4192af8227d756bfda6
样式相关的通用函数
https://gist.github.com/hehongwei44/9abf63536accd0f2eeb7
获取元素当前的高度和宽度
https://gist.github.com/hehongwei44/b524ff25991d99625eb2
以上就是本文分享的javascript常用脚本了,希望大家能够喜欢。
代码注释