![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jQuery
雨田Larry
本人丰富,无法简介
展开
-
练习笔记:使用jQuery实现H5拖放(drag 和 drop)功能
遇到问题1:在js里面可直接e.dataTransfer.setData("obj_add",e.target.id); 使用jQuery绑定事件时,需e.originalEvent.dataTransfer.setData("obj_add",e.target.id); .backpack {width:400px;height:200px;border:1px s原创 2017-02-08 14:46:53 · 8803 阅读 · 0 评论 -
使用HTML5拖拽实现表格列移动
纯前端的移动,不重载数据,不支持换页和数据刷新实现代码,调用在表格加载完成之后function add_drag_th(){ //允许放入 $("#callGrid tr>th").on("dragover",function(e){ e.originalEvent.preventDefault(); });原创 2017-04-07 15:37:16 · 13554 阅读 · 3 评论 -
基于bootgrid,利用HTML5拖拽实现表格列互换并添加至localStorage
基于bootgrid,利用HTML5拖拽实现表格列互换,支持换页和刷新数据,首先找到用bootgrid加载表格数据的方法,类似下面的function getList() { $("#grid").bootgrid({ ...... })});再写一个方法initTableData,其包括getList()和互换的初始化,如果有自定义字段的加载,该方原创 2017-04-07 14:09:54 · 1664 阅读 · 0 评论 -
Jquery时间格式化以及对时间的加减
//时间格式转换jQuery.fn.extend(Date.prototype,{ Format:function(fmt){ var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMin原创 2017-08-03 09:37:48 · 7446 阅读 · 0 评论