引入js
! function () {
"use strict";
function t(e, o) {
function i(t, e) {
return function () {
return t.apply(e, arguments)
}
}
var r;
if (o = o || {
}, this.trackingClick = !1, this.trackingClickStart = 0, this.targetElement = null, this.touchStartX = 0, this.touchStartY = 0, this.lastTouchIdentifier = 0, this.touchBoundary = o.touchBoundary || 10, this.layer = e, this.tapDelay = o.tapDelay || 200, this.tapTimeout = o.tapTimeout || 700, !t.notNeeded(e)) {
for (var a = ["onMouse", "onClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel"], c = this, s = 0, u = a.length; u > s; s++) c[a[s]] = i(c[a[s]], c);
n && (e.addEventListener("mouseover", this.onMouse, !0), e.addEventListener("mousedown", this.onMouse, !0), e.addEventListener("mouseup", this.onMouse, !0)), e.addEventListener("click", this.onClick, !0), e.addEventListener("touchstart", this.onTouchStart, !1), e.addEventListener("touchmove", this.onTouchMove, !1), e.addEventListener("touchend", this.onTouchEnd, !1), e.addEventListener("touchcancel", this.onTouchCancel, !1), Event.prototype.stopImmediatePropagation || (e.removeEventListener = function (t, n, o) {
var i = Node.prototype.removeEventListener;
"click" === t ? i.call(e, t, n.hijacked || n, o) : i.call(e, t, n, o)
}, e.addEventListener = function (t, n, o) {
var i = Node.prototype.addEventListener;
"click" === t ? i.call(e, t, n.hijacked || (n.hijacked = function (t) {
t.propagationStopped || n(t)
}), o) : i.call(e, t, n, o)
}), "function" == typeof e.onclick && (r = e.onclick, e.addEventListener("click", function (t) {
r(t)
}, !1), e.onclick = null)
}
}
var e = navigator.userAgent.indexOf("Windows Phone") >= 0,
n = navigator.userAgent.