- HTML5 JavaScript Tools 有用的或有趣的, 实用工具,函数,等等...
- 为方便讨论补充等,多数内容会放在
Issues
中,欢迎到Issues观看和评论
.container {width: auto;min-width: 980px;max-width: 90%;margin-right: auto;margin-left: auto;}
.discussion-timeline {position: relative;float: left;width: 80%;max-width: 100%;}
.discussion-sidebar {z-index: 21;position: absolute;right: 10px;top: 185px;}
.timeline-new-comment {max-width: 100%;}
===================================================
此处列表不是实时更新
- 1. document.ready [兼容] 跟 $.ready 一样功能
- 2. JavaScript 中的对象深度复制(Object Deep Clone)
- 3. 对Date的扩展,将Date 转化为指定格式的String
- 4. Array数组删除元素,参数可以是下标、单个对象、一维数组、多维数组
- 5. 判断对象是否为空对象
- 6. Array 去除数组里重复的对象,返回新的数组
- 7. 用JavaScript在浏览器中创建下载文件,在前端生成的文件下载
- 8. 一个函数搞定拖拽,直接指定对象设置可拖拽
- 9. String 的扩展和 stringBuilder 也是很有意思的
- 10. Array 数组的排序 sort
- 11. 一个函数搞定进度条/拖动滑块
- 12. 一个函数搞定右键菜单
- 13. 文档上点击鼠标左键并拖动绘制矩形,,矩形上点击拖动矩形
- 14. 类似桌面的鼠标框选,和拖动选择的所有元素(360°的框选)