(function (window){var arr = [];var VP = function (selector, context) {return new VP.fn.init (selector, context);}Vp.fn = Vp.prototype ={Constructor:vp,init:function (Selector, context) {var _document = window.document, elem, Mark = Selector.charat (0);if (Mark = = ' # ') {Elem = _document.getelementbyid (selector.substring (1)); if (elem) {This[0] = Elem;this.length = 1;}}return This;},splice:arr.splice,}; Vp.extend = VP.fn.extend = function (){var options, name, SRC, copy, copyisarray, Clone,target = arguments[0] | | {}, i = 1,length = Arguments.length,deep = False;if (typeof target = = = "Boolean"){Deep = Target;target = Arguments[i] | | {}; i++;} if (typeof target!== "Object" &&! Vp.isfunction (target)){target = {};} if (i = = length){target = this;i--;}For (; i < length; i++){if (options = arguments[i]) = null) {for (name in options) {src = Target[name];copy = options[name];if (target = = = C opy) {continue;}if (deep && copy && vp.isplainobject (copy) | | (Copyisarray = Vp.isarray (copy)))) {if (copyisarray) {copyisarray = False;clone = src && vp.isarray (src)? src: [];}Else{clone = src && vp.isplainobject (src)? src: {};} Target[name] = Vp.extend (deep, clone, copy);} else if (copy!== undefined){Target[name] = copy;}}}}return Target;}; VP.fn.extend ({Get:function () {return this[0];},}); VP.fn.init.prototype = Vp.fn;window. VP = VP;}) (window);
jquery how to get DOM elements