jhprjv2/ruoyi-ui/public/wx/jquery.min.js

1 line
81 KiB
JavaScript
Raw Normal View History

2024-04-11 00:18:16 +08:00
!function(h,w){function t(e,t){return t.toUpperCase()}function n(){m.removeEventListener("DOMContentLoaded",n,!1),h.removeEventListener("load",n,!1),ve.ready()}var r,i,g=typeof w,e=h.location,m=h.document,o=m.documentElement,s=h.jQuery,a=h.$,u={},l=[],c="2.0.3",y=l.concat,f=l.push,p=l.slice,d=l.indexOf,v=u.toString,x=u.hasOwnProperty,b=c.trim,ve=function(e,t){return new ve.fn.init(e,t,r)},T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,C=/\S+/g,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^-ms-/,S=/-([\da-z])/gi;function j(e){var t=e.length,n=ve.type(e);return!ve.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||"function"!==n&&(0===t||"number"==typeof t&&0<t&&t-1 in e)))}ve.fn=ve.prototype={jquery:c,constructor:ve,init:function(e,t,n){if(!e)return this;if("string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):ve.isFunction(e)?n.ready(e):(e.selector!==w&&(this.selector=e.selector,this.context=e.context),ve.makeArray(e,this));if(!(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:N.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof ve?t[0]:t,ve.merge(this,ve.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),k.test(r[1])&&ve.isPlainObject(t))for(var r in t)ve.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(n=m.getElementById(r[2]))&&n.parentNode&&(this.length=1,this[0]=n),this.context=m,this.selector=e,this},selector:"",length:0,toArray:function(){return p.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e){e=ve.merge(this.constructor(),e);return e.prevObject=this,e.context=this.context,e},each:function(e,t){return ve.each(this,e,t)},ready:function(e){return ve.ready.promise().done(e),this},slice:function(){return this.pushStack(p.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},map:function(n){return this.pushStack(ve.map(this,function(e,t){return n.call(e,t,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},ve.fn.init.prototype=ve.fn,ve.extend=ve.fn.extend=function(){var e,t,n,r,i,o=arguments[0]||{},s=1,a=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[1]||{},s=2),"object"==typeof o||ve.isFunction(o)||(o={}),a===s&&(o=this,--s);s<a;s++)if(null!=(e=arguments[s]))for(t in e)i=o[t],n=e[t],o!==n&&(u&&n&&(ve.isPlainObject(n)||(r=ve.isArray(n)))?(i=r?(r=!1,i&&ve.isArray(i)?i:[]):i&&ve.isPlainObject(i)?i:{},o[t]=ve.extend(u,i,n)):n!==w&&(o[t]=n));return o},ve.extend({expando:"jQuery"+(c+Math.random()).replace(/\D/g,""),noConflict:function(e){return h.$===ve&&(h.$=a),e&&h.jQuery===ve&&(h.jQuery=s),ve},isReady:!1,readyWait:1,holdReady:function(e){e?ve.readyWait++:ve.ready(!0)},ready:function(e){(!0===e?--ve.readyWait:ve.isReady)||((ve.isReady=!0)!==e&&0<--ve.readyWait||(i.resolveWith(m,[ve]),ve.fn.trigger&&ve(m).trigger("ready").off("ready")))},isFunction:function(e){return"function"===ve.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[v.call(e)]||"object":typeof e},isPlainObject:function(e){if("object"!==ve.type(e)||e.nodeType||ve.isWindow(e))return!1;try{if(e.constructor&&!x.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}return!0},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||m;var r=k.exec(e),n=!n&&[];return r?[t.createElement(r[1])]:(r=ve.buildFragment([e],t,n),n&&ve(n).remove(),ve.merge([],r.childNodes))},parseJSON:JSON.parse,parseXML:function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(e){t=w