摘要:
1 function FloatHelper() { 2 } 3 4 FloatHelper.prototype.showFloater = function (Target, Title, Action, ActionCallback, Callback, IsNeedTemplete... 阅读全文
摘要:
1 (function ($) { 2 var mouseScroll = function (e) { 3 try { 4 var origEvent = e.originalEvent; 5 origEvent.preve... 阅读全文
摘要:
1 //require ScrollHelper.js 2 function DialogHelper() { 3 var _this = this; 4 var doc = window.document; 5 _this.maskDiv = null; 6 ... 阅读全文
摘要:
1 function getImgSrc(target, callback) { 2 if (window.FileReader) { 3 var oPreviewImg = null, oFReader = new window.FileReader(); 4 ... 阅读全文
摘要:
1 var selectObj = null; 2 function ImageCrop(canvasId, imageSource, x, y, width, height) { 3 var canvas = $("#" + canvasId); 4 if (canvas... 阅读全文
摘要:
验证是否为图片格式1 function IsImgType(src) {2 var rFilter = /^(?:image\/bmp|image\/cis\-cod|image\/gif|image\/ief|image\/jpeg|image\/jpeg|image\/jpeg|imag... 阅读全文
摘要:
今天写了一天这个jquery插件:可以实现对div进行拖拽来调整大小的功能。 1 (function ($) { 2 $.fn.dragDivResize = function () { 3 var deltaX, deltaY, _startX, _startY; ... 阅读全文