KingNET.WebUI/Scripts/jquery.ajaxRequest.js

(开头部分) 15KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

$.fn.ajaxForm = function (options) {
    if (options.initData != null) {
        this.each(function () {
            options.form = $(this);
            $.ajaxRequest(options)
        });
        options.initData = null
    }
    return this.ajaxFormUnbind().bind('submit.form-plugin',
	function () {
	    $(this).ajaxSubmit(options);
	    return false
	}).each(function () {
	    $(":submit,input:image", this).bind('click.form-plugin',
		function (e) {
		    var form = this.form;
		    form.clk = this;
		    if (this.type == 'image') {
		        if (e.offsetX != undefined) {
		            form.clk_x = e.offsetX;
		            form.clk_y = e.offsetY
		        } else if (typeof $.fn.offset == 'function') {
		            var offset = $(this).offset();
		            form.clk_x = e.pageX - offset.left;
		            form.clk_y = e.pageY - offset.top
		        } else {
		            form.clk_x = e.pageX - this.offsetLeft;
		            form.clk_y = e.pageY - this.offsetTop
		        }
		    }
		    setTimeout(function () {
		        form.clk = form.clk_x = form.clk_y = null
		    },
			10)
		})
	})
};
$.fn.ajaxFormUnbind = function () {
    this.unbind('submit.form-plugin');
    return this.each(function () {
        $(":submit,input:image", this).unbind('click.form-plugin')
    })
};
$.fn.ajaxSubmit = function (options) {
    return this.each(function () {
        options.form = $(this);
        $.ajaxRequest(options)
    })
};
$.fn.pageBar1 = function (options) {
    var configs = {
        PageIndex: 1,
        PageSize: 15,
        TotalPage: 0,
        RecordCount: 0,
        showPageCount: 4,
        onPageClick: function () {
            return false
        }
    };
后面还有 369 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。