`
pph007
  • 浏览: 11323 次
  • 性别: Icon_minigender_1
  • 来自: 厦门
社区版块
存档分类
最新评论

百度变形金刚js源码

    博客分类:
  • JS
阅读更多


var T, baidu = T = baidu || {
version : "1.3.9"
};
baidu.guid = "$BAIDU$";
window[baidu.guid] = window[baidu.guid] || {};
baidu.dom = baidu.dom || {};
baidu.browser = baidu.browser || {};
if (/msie (\d+\.\d)/i.test(navigator.userAgent)) {
baidu.browser.ie = baidu.ie = document.documentMode || +RegExp["\x241"]
}
baidu.dom.opacity = function(b, a) {
b = baidu.dom.g(b);
if (!baidu.browser.ie) {
b.style.opacity = a;
b.style.KHTMLOpacity = a
} else {
b.style.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity:"
+ Math.floor(a * 100) + ")"
}
};
baidu.dom.scale = function(c, g, b) {
if (!(c = baidu.dom.g(c)) || typeof g != "number") {
return null
}
b = b || {};
var e = c.style, a = b.transformOrigin || "0px 0px";
if (baidu.browser.ie) {
e.zoom = g
} else {
var d = "ransform", f = d + "Origin";
e["WebkitT" + f] = e["MozT" + f] = e["OT" + f] = e["t" + f] = a;
e["WebkitT" + d] = e["MozT" + d] = e["OT" + d] = e["t" + d] = "scale("
+ g + ")"
}
};
baidu.event = baidu.event || {};
baidu.event._listeners = baidu.event._listeners || [];
baidu.lang = baidu.lang || {};
baidu.lang.isString = function(a) {
return "[object String]" == Object.prototype.toString.call(a)
};
baidu.isString = baidu.lang.isString;
baidu.dom._g = function(a) {
if (baidu.lang.isString(a)) {
return document.getElementById(a)
}
return a
};
baidu._g = baidu.dom._g;
baidu.event.on = function(b, e, g) {
e = e.replace(/^on/i, "");
b = baidu.dom._g(b);
var f = function(i) {
g.call(b, i)
}, a = baidu.event._listeners, d = baidu.event._eventFilter, h, c = e;
e = e.toLowerCase();
if (d && d[e]) {
h = d[e](b, e, f);
c = h.type;
f = h.listener
}
if (b.addEventListener) {
b.addEventListener(c, f, false)
} else {
if (b.attachEvent) {
b.attachEvent("on" + c, f)
}
}
a[a.length] = [ b, e, g, f, c ];
return b
};
baidu.on = baidu.event.on;
baidu.dom.g = function(a) {
if ("string" == typeof a || a instanceof String) {
return document.getElementById(a)
} else {
if (a && a.nodeName && (a.nodeType == 1 || a.nodeType == 9)) {
return a
}
}
return null
};
baidu.g = baidu.G = baidu.dom.g;
baidu.dom.insertHTML = function(d, a, c) {
d = baidu.dom.g(d);
var b, e;
if (d.insertAdjacentHTML) {
d.insertAdjacentHTML(a, c)
} else {
b = d.ownerDocument.createRange();
a = a.toUpperCase();
if (a == "AFTERBEGIN" || a == "BEFOREEND") {
b.selectNodeContents(d);
b.collapse(a == "AFTERBEGIN")
} else {
e = a == "BEFOREBEGIN";
b[e ? "setStartBefore" : "setEndAfter"](d);
b.collapse(e)
}
b.insertNode(b.createContextualFragment(c))
}
return d
};
baidu.insertHTML = baidu.dom.insertHTML;
baidu.dom.getDocument = function(a) {
a = baidu.dom.g(a);
return a.nodeType == 9 ? a : a.ownerDocument || a.document
};
baidu.dom.getComputedStyle = function(b, a) {
b = baidu.dom._g(b);
var d = baidu.dom.getDocument(b), c;
if (d.defaultView && d.defaultView.getComputedStyle) {
c = d.defaultView.getComputedStyle(b, null);
if (c) {
return c[a] || c.getPropertyValue(a)
}
}
return ""
};
baidu.dom._styleFixer = baidu.dom._styleFixer || {};
baidu.dom._styleFilter = baidu.dom._styleFilter || [];
baidu.dom._styleFilter.filter = function(b, e, f) {
for ( var a = 0, d = baidu.dom._styleFilter, c; c = d[a]; a++) {
if (c = c[f]) {
e = c(b, e)
}
}
return e
};
baidu.string = baidu.string || {};
baidu.string.toCamelCase = function(a) {
if (a.indexOf("-") < 0 && a.indexOf("_") < 0) {
return a
}
return a.replace(/[-_][^-_]/g, function(b) {
return b.charAt(1).toUpperCase()
})
};
baidu.dom.getStyle = function(c, b) {
var e = baidu.dom;
c = e.g(c);
b = baidu.string.toCamelCase(b);
var d = c.style[b] || (c.currentStyle ? c.currentStyle[b] : "")
|| e.getComputedStyle(c, b);
if (!d) {
var a = e._styleFixer[b];
if (a) {
d = a.get ? a.get(c) : baidu.dom.getStyle(c, a)
}
}
if (a = e._styleFilter) {
d = a.filter(b, d, "get")
}
return d
};
baidu.getStyle = baidu.dom.getStyle;
if (/opera\/(\d+\.\d)/i.test(navigator.userAgent)) {
baidu.browser.opera = +RegExp["\x241"]
}
baidu.browser.isWebkit = /webkit/i.test(navigator.userAgent);
baidu.browser.isGecko = /gecko/i.test(navigator.userAgent)
&& !/like gecko/i.test(navigator.userAgent);
baidu.browser.isStrict = document.compatMode == "CSS1Compat";
baidu.dom.getPosition = function(a) {
a = baidu.dom.g(a);
var j = baidu.dom.getDocument(a), d = baidu.browser, g = baidu.dom.getStyle, c = d.isGecko > 0
&& j.getBoxObjectFor
&& g(a, "position") == "absolute"
&& (a.style.top === "" || a.style.left === ""), h = {
left : 0,
top : 0
}, f = (d.ie && !d.isStrict) ? j.body : j.documentElement, k, b;
if (a == f) {
return h
}
if (a.getBoundingClientRect) {
b = a.getBoundingClientRect();
h.left = Math.floor(b.left)
+ Math.max(j.documentElement.scrollLeft, j.body.scrollLeft);
h.top = Math.floor(b.top)
+ Math.max(j.documentElement.scrollTop, j.body.scrollTop);
h.left -= j.documentElement.clientLeft;
h.top -= j.documentElement.clientTop;
var i = j.body, l = parseInt(g(i, "borderLeftWidth")), e = parseInt(g(
i, "borderTopWidth"));
if (d.ie && !d.isStrict) {
h.left -= isNaN(l) ? 2 : l;
h.top -= isNaN(e) ? 2 : e
}
} else {
k = a;
do {
h.left += k.offsetLeft;
h.top += k.offsetTop;
if (d.isWebkit > 0 && g(k, "position") == "fixed") {
h.left += j.body.scrollLeft;
h.top += j.body.scrollTop;
break
}
k = k.offsetParent
} while (k && k != a);
if (d.opera > 0 || (d.isWebkit > 0 && g(a, "position") == "absolute")) {
h.top -= j.body.offsetTop
}
k = a.offsetParent;
while (k && k != j.body) {
h.left -= k.scrollLeft;
if (!d.opera || k.tagName != "TR") {
h.top -= k.scrollTop
}
k = k.offsetParent
}
}
return h
};
baidu.page = baidu.page || {};
baidu.page.getViewHeight = function() {
var b = document, a = b.compatMode == "BackCompat" ? b.body
: b.documentElement;
return a.clientHeight
};
baidu.fx = baidu.fx || {};
baidu.dom.show = function(a) {
a = baidu.dom.g(a);
a.style.display = "";
return a
};
baidu.show = baidu.dom.show;
baidu.object = baidu.object || {};
baidu.extend = baidu.object.extend = function(c, a) {
for ( var b in a) {
if (a.hasOwnProperty(b)) {
c[b] = a[b]
}
}
return c
};
(function() {
var a = window[baidu.guid];
baidu.lang.guid = function() {
return "TANGRAM__" + (a._counter++).toString(36)
};
a._counter = a._counter || 1
})();
window[baidu.guid]._instances = window[baidu.guid]._instances || {};
baidu.lang.isFunction = function(a) {
return "[object Function]" == Object.prototype.toString.call(a)
};
baidu.lang.Class = function(a) {
this.guid = a || baidu.lang.guid();
window[baidu.guid]._instances[this.guid] = this
};
window[baidu.guid]._instances = window[baidu.guid]._instances || {};
baidu.lang.Class.prototype.dispose = function() {
delete window[baidu.guid]._instances[this.guid];
for ( var a in this) {
if (!baidu.lang.isFunction(this[a])) {
delete this[a]
}
}
this.disposed = true
};
baidu.lang.Class.prototype.toString = function() {
return "[object " + (this._className || "Object") + "]"
};
baidu.lang.Event = function(a, b) {
this.type = a;
this.returnValue = true;
this.target = b || null;
this.currentTarget = null
};
baidu.lang.Class.prototype.addEventListener = function(d, c, b) {
if (!baidu.lang.isFunction(c)) {
return
}
!this.__listeners && (this.__listeners = {});
var a = this.__listeners, e;
if (typeof b == "string" && b) {
if (/[^\w\-]/.test(b)) {
throw ("nonstandard key:" + b)
} else {
c.hashCode = b;
e = b
}
}
d.indexOf("on") != 0 && (d = "on" + d);
typeof a[d] != "object" && (a[d] = {});
e = e || baidu.lang.guid();
c.hashCode = e;
a[d][e] = c
};
baidu.lang.Class.prototype.removeEventListener = function(d, c) {
if (typeof c != "undefined") {
if ((baidu.lang.isFunction(c) && !(c = c.hashCode))
|| (!baidu.lang.isString(c))) {
return
}
}
!this.__listeners && (this.__listeners = {});
d.indexOf("on") != 0 && (d = "on" + d);
var b = this.__listeners;
if (!b[d]) {
return
}
if (typeof c != "undefined") {
b[d][c] && delete b[d][c]
} else {
for ( var a in b[d]) {
delete b[d][a]
}
}
};
baidu.lang.Class.prototype.dispatchEvent = function(d, a) {
if (baidu.lang.isString(d)) {
d = new baidu.lang.Event(d)
}
!this.__listeners && (this.__listeners = {});
a = a || {};
for ( var c in a) {
d[c] = a[c]
}
var c, b = this.__listeners, e = d.type;
d.target = d.target || this;
d.currentTarget = this;
e.indexOf("on") != 0 && (e = "on" + e);
baidu.lang.isFunction(this[e]) && this[e].apply(this, arguments);
if (typeof b[e] == "object") {
for (c in b[e]) {
b[e][c].apply(this, arguments)
}
}
return d.returnValue
};
baidu.global = baidu.global || {};
(function() {
var a = window[baidu.guid];
baidu.global.get = function(b) {
return a[b]
}
})();
baidu.lang.createClass = function(f, b) {
b = b || {};
var e = b.superClass || baidu.lang.Class;
var d = function() {
if (e != baidu.lang.Class) {
e.apply(this, arguments)
} else {
e.call(this)
}
f.apply(this, arguments)
};
d.options = b.options || {};
var h = function() {
}, g = f.prototype;
h.prototype = e.prototype;
var a = d.prototype = new h();
for ( var c in g) {
a[c] = g[c]
}
typeof b.className == "string" && (a._className = b.className);
a.constructor = g.constructor;
d.extend = function(k) {
for ( var j in k) {
d.prototype[j] = k[j]
}
return d
};
return d
};
baidu.fx.Timeline = baidu.lang.createClass(function(a) {
baidu.object.extend(this, baidu.fx.Timeline.options);
baidu.object.extend(this, a)
}, {
className : "baidu.fx.Timeline",
options : {
interval : 16,
duration : 500,
dynamic : true
}
}).extend(
{
launch : function() {
var a = this;
a.dispatchEvent("onbeforestart");
typeof a.initialize == "function" && a.initialize();
a["\x06btime"] = new Date().getTime();
a["\x06etime"] = a["\x06btime"] + (a.dynamic ? a.duration : 0);
a["\x06pulsed"]();
return a
},
"\x06pulsed" : function() {
var b = this;
var a = new Date().getTime();
b.percent = (a - b["\x06btime"]) / b.duration;
b.dispatchEvent("onbeforeupdate");
if (a >= b["\x06etime"]) {
typeof b.render == "function"
&& b.render(b.transition(b.percent = 1));
typeof b.finish == "function" && b.finish();
b.dispatchEvent("onafterfinish");
b.dispose();
return
}
typeof b.render == "function"
&& b.render(b.transition(b.percent));
b.dispatchEvent("onafterupdate");
b["\x06timer"] = setTimeout(function() {
b["\x06pulsed"]()
}, b.interval)
},
transition : function(a) {
return a
},
cancel : function() {
this["\x06timer"] && clearTimeout(this["\x06timer"]);
this["\x06etime"] = this["\x06btime"];
typeof this.restore == "function" && this.restore();
this.dispatchEvent("oncancel");
this.dispose()
},
end : function() {
this["\x06timer"] && clearTimeout(this["\x06timer"]);
this["\x06etime"] = this["\x06btime"];
this["\x06pulsed"]()
}
});
baidu.fx.create = function(d, b, c) {
var e = new baidu.fx.Timeline(b);
e.element = d;
e._className = c || e._className;
e["\x06original"] = {};
var a = "baidu_current_effect";
e.addEventListener("onbeforestart", function() {
var g = this, f;
g.attribName = "att_" + g._className.replace(/\W/g, "_");
f = g.element.getAttribute(a);
g.element.setAttribute(a, (f || "") + "|" + g.guid + "|", 0);
if (!g.overlapping) {
(f = g.element.getAttribute(g.attribName))
&& window[baidu.guid]._instances[f].cancel();
g.element.setAttribute(g.attribName, g.guid, 0)
}
});
e["\x06clean"] = function(h) {
var g = this, f;
if (h = g.element) {
h.removeAttribute(g.attribName);
f = h.getAttribute(a);
f = f.replace("|" + g.guid + "|", "");
if (!f) {
h.removeAttribute(a)
} else {
h.setAttribute(a, f, 0)
}
}
};
e.addEventListener("oncancel", function() {
this["\x06clean"]();
this["\x06restore"]()
});
e.addEventListener("onafterfinish", function() {
this["\x06clean"]();
this.restoreAfterFinish && this["\x06restore"]()
});
e.protect = function(f) {
this["\x06original"][f] = this.element.style[f]
};
e["\x06restore"] = function() {
var j = this["\x06original"], h = this.element.style, f;
for ( var g in j) {
f = j[g];
if (typeof f == "undefined") {
continue
}
h[g] = f;
if (!f && h.removeAttribute) {
h.removeAttribute(g)
} else {
if (!f && h.removeProperty) {
h.removeProperty(g)
}
}
}
};
return e
};
baidu.fx.scale = function(c, a) {
if (!(c = baidu.dom.g(c))) {
return null
}
a = baidu.object.extend( {
from : 0.1,
to : 1
}, a || {});
var e = /^(-?\d+px|\d?\d(\.\d+)?%|100%|left|center|right)(\s+(-?\d+px|\d?\d(\.\d+)?%|100%|top|center|bottom))?/i;
!e.test(a.transformOrigin) && (a.transformOrigin = "0px 0px");
var b = {}, d = baidu.fx
.create(
c,
baidu.object
.extend(
{
fade : true,
initialize : function() {
baidu.dom.show(c);
var k = this, f = b, p = c.style, j = function(
o) {
k.protect(o)
};
if (baidu.browser.ie) {
j("top");
j("left");
j("position");
j("zoom");
j("filter");
this.offsetX = parseInt(baidu.dom
.getStyle(c, "left")) || 0;
this.offsetY = parseInt(baidu.dom
.getStyle(c, "top")) || 0;
if (baidu.dom.getStyle(c,
"position") == "static") {
p.position = "relative"
}
e.test(this.transformOrigin);
var i = RegExp["\x241"]
.toLowerCase(), h = RegExp["\x244"]
.toLowerCase(), l = this.element.offsetWidth, g = this.element.offsetHeight, n, m;
if (/\d+%/.test(i)) {
n = parseInt(i, 10) / 100
* l
} else {
if (/\d+px/.test(i)) {
n = parseInt(i)
} else {
if (i == "left") {
n = 0
} else {
if (i == "center") {
n = l / 2
} else {
if (i == "right") {
n = l
}
}
}
}
}
if (!h) {
m = g / 2
} else {
if (/\d+%/.test(h)) {
m = parseInt(h, 10)
/ 100 * g
} else {
if (/\d+px/.test(h)) {
m = parseInt(h)
} else {
if (h == "top") {
m = 0
} else {
if (h == "center") {
m = g / 2
} else {
if (h == "bottom") {
m = g
}
}
}
}
}
}
p.zoom = this.from;
f.cx = n;
f.cy = m
} else {
j("WebkitTransform");
j("WebkitTransformOrigin");
j("MozTransform");
j("MozTransformOrigin");
j("OTransform");
j("OTransformOrigin");
j("transform");
j("transformOrigin");
j("opacity");
j("KHTMLOpacity");
p.WebkitTransform = p.MozTransform = p.OTransform = p.transform = "scale("
+ this.from + ")";
p.WebkitTransformOrigin = p.MozTransformOrigin = p.OTransformOrigin = p.transformOrigin = this.transformOrigin
}
},
render : function(i) {
var g = c.style, f = this.to == 1, f = typeof this.opacityTrend == "boolean" ? this.opacityTrend
: f, h = f ? this.percent
: 1 - this.percent, j = this.to
* i + this.from * (1 - i);
if (baidu.browser.ie) {
g.zoom = j;
if (this.fade) {
g.filter = "progid:DXImageTransform.Microsoft.Alpha(opacity:"
+ Math
.floor(h * 100)
+ ")"
}
g.top = this.offsetY + b.cy
* (1 - j);
g.left = this.offsetX + b.cx
* (1 - j)
} else {
g.WebkitTransform = g.MozTransform = g.OTransform = g.transform = "scale("
+ j + ")";
if (this.fade) {
g.KHTMLOpacity = g.opacity = h
}
}
}
}, a), "baidu.fx.scale");
return d.launch()
};
baidu.fx.move = function(b, a) {
if (!(b = baidu.dom.g(b)) || baidu.dom.getStyle(b, "position") == "static") {
return null
}
a = baidu.object.extend( {
x : 0,
y : 0
}, a || {});
if (a.x == 0 && a.y == 0) {
return null
}
var c = baidu.fx.create(b, baidu.object.extend( {
initialize : function() {
this.protect("top");
this.protect("left");
this.originX = parseInt(baidu.dom.getStyle(b, "left")) || 0;
this.originY = parseInt(baidu.dom.getStyle(b, "top")) || 0
},
transition : function(d) {
return 1 - Math.pow(1 - d, 2)
},
render : function(d) {
b.style.top = (this.y * d + this.originY) + "px";
b.style.left = (this.x * d + this.originX) + "px"
}
}, a), "baidu.fx.move");
return c.launch()
};
baidu.fx.moveTo = function(d, b, c) {
if (!(d = baidu.dom.g(d)) || baidu.dom.getStyle(d, "position") == "static"
|| typeof b != "object") {
return null
}
var f = [ b[0] || b.x || 0, b[1] || b.y || 0 ];
var a = parseInt(baidu.dom.getStyle(d, "left")) || 0;
var g = parseInt(baidu.dom.getStyle(d, "top")) || 0;
var e = baidu.fx.move(d, baidu.object.extend( {
x : f[0] - a,
y : f[1] - g
}, c || {}));
return e
};
(function() {
if (location.search.match(/pn=/) && !location.search.match(/pn=0/)) {
return
}
var f = document.getElementById("main").getElementsByTagName("div")[0]
.getElementsByTagName("td")[0];
if (!f) {
f = document.createElement("div");
f.style.marginTop = "10px";
document.getElementById("main").insertBefore(f,
document.getElementById("main").firstChild)
}
f.innerHTML = '';
var b = document.getElementById("center").getElementsByTagName("div")[0];
if (b && b.style.width == "85%") {
b.style.display = "none";
b.innerHTML = ""
}
var e = document.getElementById("right").getElementsByTagName("div");
if (e && e.length) {
for ( var c = 0; c < e.length; c++) {
e[c].style.display = "none"
}
}
var a = document.getElementById("right").getElementsByTagName("table")[0];
if (a) {
a.style.display = "none"
}
var d = function() {
if (document.getElementById("iknowguidehandle")) {
document.getElementById("iknowguidehandle").style.display = "none"
}
if (document.getElementById("iknowguidecontent")) {
document.getElementById("iknowguidecontent").style.display = "none"
}
};
d();
setTimeout(function() {
d()
}, 1000)
})();
baidu.zhidao = baidu.zhidao || {};
baidu.zhidao.Pixel = function(a) {
this.source = a;
this.element = a.cloneNode(true);
this.width = a.offsetWidth;
this.height = a.offsetHeight;
var b = baidu.dom.getPosition(a);
this.top = b.top;
this.left = b.left;
this.element.style.position = "absolute";
this.rect_t;
this.rect_r;
this.rect_b;
this.rect_l
};
baidu.object.extend(baidu.zhidao.Pixel.prototype, {
setPosTop : function(a) {
if (this.tempTop == a) {
return
}
this.element.style.top = ((this.tempTop = a) - this.rect_t) + "px"
},
setPosLeft : function(a) {
if (this.tempLeft == a) {
return
}
this.element.style.left = ((this.tempLeft = a) - this.rect_l) + "px"
},
hide : function() {
this.element.style.display = "none"
},
show : function() {
this.element.style.display = ""
}
});
baidu.zhidao.Sketchpad = function(a) {
this.source = a;
this.field = null;
this.arena = null;
this.pixels = [];
this.otiose = [];
this.pxwidth = 32;
this.pxheight = 33;
this.pxh = 20;
this.pxv = 24;
this.max = 11;
this.ix = 16;
this.iy = 2;
this.dis = 4;
this.width = this.source.offsetWidth;
this.zhong = Math.ceil((this.width - this.pxwidth * this.ix) / 2
- this.pxwidth * this.dis / 2);
this.height = 1010;
this.bgcolor = "#F7F7F7"
};
baidu.object
.extend(
baidu.zhidao.Sketchpad.prototype,
{
render : function() {
var h = this;
var a = this.field = this.source.ownerDocument
.createElement("DIV");
a.style.position = "absolute";
a.style.width = this.width + "px";
a.style.height = this.height + "px";
this.source.parentNode.insertBefore(a, this.source);
this.position = baidu.dom.getPosition(this.field);
this.arenaLeft = this.width - (this.pxwidth * this.pxh);
this.field.innerHTML = "<div style='position:absolute; top:0px; left:"
+ this.arenaLeft
+ "px; width:"
+ this.pxwidth
* this.pxh
+ "px; height:"
+ this.pxheight
* this.pxv + "px;'></div>";
this.arena = this.field.firstChild;
baidu.event.on(window, "onresize", function() {
h.width = baidu.dom.g("center").offsetWidth;
h.field && (h.field.style.width = h.width + "px")
});
var m = this.source.getElementsByTagName("TABLE");
var f = this.ts = [];
this.max = m.length - 1;
for ( var e = 0; e < this.max; e++) {
f[e] = m[e]
}
var d = baidu.page.getViewHeight();
for ( var e = 0; e < this.max; e++) {
var k = baidu.dom.getPosition(f[e]);
if (this.pixels.length > 190) {
var c = f[e].cloneNode(true);
this.field.appendChild(c);
c.style.position = "absolute";
c.style.top = (k.top - this.position.top)
+ "px";
c.style.left = (k.left - this.position.left)
+ "px";
this.otiose.push(c)
} else {
for ( var j = 0; j < this.iy; j++) {
var g = f[e].offsetHeight < this.pxheight * 2;
if (j == 1 && g) {
continue
}
for ( var l = 0; l < this.ix; l++) {
var b = new baidu.zhidao.Pixel(f[e]);
b.lineno = e;
b.bgc = b.element.bgColor;
b.element.bgColor = "";
b.rect_t = this.pxheight * j
+ ((2 + j) * (j + 1));
b.rect_r = this.pxwidth * (l + 1) + 12;
b.rect_b = this.pxheight * (j + 1)
+ ((2 + j) * (j + 1));
b.rect_l = this.pxwidth * l + 12;
if (g) {
b.element.style.marginLeft = b.element.style.left = "0px";
b.rect_b = 48;
b.rect_l = this.pxwidth * l
}
b.element.style.clip = "rect("
+ b.rect_t + "px " + b.rect_r
+ "px " + b.rect_b + "px "
+ b.rect_l + "px)";
this.pixels.push(b);
this.field.appendChild(b.element);
b.element.style.top = (b.top - this.position.top)
+ "px";
b.element.style.left = (b.left - this.position.left)
+ "px"
}
}
}
f[e].style.visibility = "hidden"
}
this.bodyOverflow = document.body.style.overflow;
document.body.style.overflow = "hidden"
},
scale : function(a) {
a = a
|| Math
.floor((baidu.page.getViewHeight() - this.position.top) / 100)
/ 10;
baidu.dom.scale(this.arena, a)
},
dismiss : function() {
if (baidu.browser.ie) {
var b = document.createElement("DIV");
b.appendChild(this.field);
b.innerHTML = ""
} else {
(this.field.parentNode)
&& this.field.parentNode
.removeChild(this.field)
}
for ( var a = this.ts.length - 1; a > -1; a--) {
this.ts[a].style.visibility = ""
}
document.body.style.overflow = this.bodyOverflow;
baidu.lang.Class.prototype.dispose.call(this)
},
draw : function(d, g) {
for ( var f = 0, b = 0; f < d.length; f++) {
for ( var a = (g || 32); a > 0; a--) {
var e = Math.pow(2, a - 1);
if (d[f] & e) {
var c = this.pixels[b];
if (!c.busy) {
this.arena.appendChild(c.element);
c.busy = true;
c.show()
}
c.setPosTop(this.pxheight * f);
c.setPosLeft(this.pxwidth
* ((g || this.pxh) - a));
b++
}
}
}
for (; b < this.pixels.length; b++) {
var c = this.pixels[b];
if (c.busy) {
c.hide();
c.busy = false;
this.field.appendChild(c.element)
}
}
}
});
(function() {
if (location.search.match(/pn=/) && !location.search.match(/pn=0/)) {
return
}
var o = [
[ 0, 0, 336, 496, 336, 496, 496, 224, 0, 3574, 3574, 3574, 3574,
3574, 3574, 3574, 0, 432, 432, 432, 432, 432, 952, 952 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 504, 504, 1016,
1020, 252, 0, 432, 432, 432, 432, 432, 1008, 1008 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 504, 504, 1016,
1020, 252, 0, 432, 432, 816, 816, 1840, 1904, 112 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 1016, 1788,
1790, 246, 240, 0, 432, 432, 816, 1584, 3632, 3696, 112 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 1016, 1788,
1278, 243, 240, 0, 432, 944, 560, 1584, 3632, 3696, 112 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 2040, 3326,
2295, 241, 240, 0, 1968, 1968, 1584, 3632, 3632, 112, 112 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 1016, 1788,
1278, 243, 240, 0, 432, 944, 560, 1584, 3632, 3696, 112 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 1016, 1788,
1790, 246, 240, 0, 432, 432, 816, 1584, 3632, 3696, 112 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 504, 504, 1016,
1020, 252, 0, 432, 432, 816, 816, 1840, 1904, 112 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 504, 504, 1016,
1020, 252, 0, 432, 432, 432, 432, 432, 1008, 1008 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 504, 504, 1016,
1020, 252, 0, 432, 432, 480, 480, 480, 992, 896 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 504, 1016, 1790,
1782, 240, 0, 432, 480, 480, 480, 384, 896, 896 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 1016, 1788, 638,
242, 240, 0, 240, 240, 480, 480, 96, 224, 224 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 2040, 3326,
2295, 241, 240, 0, 496, 496, 944, 944, 48, 240, 240 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 1016, 1788, 638,
242, 240, 0, 240, 240, 480, 480, 96, 224, 224 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 504, 1016, 1790,
1782, 240, 0, 432, 480, 480, 480, 384, 896, 896 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 504, 504, 1016,
1020, 252, 0, 432, 432, 480, 480, 480, 992, 896 ],
[ 0, 0, 160, 240, 240, 112, 496, 496, 0, 240, 496, 504, 504, 1016,
1020, 252, 0, 432, 432, 432, 432, 432, 1008, 1008 ],
[ 0, 0, 5376, 7936, 5376, 7936, 7936, 3584, 0, 57184, 57184, 57184,
57184, 57184, 57184, 57184, 0, 6912, 6912, 6912, 6912,
6912, 15232, 15232 ],
[ 0, 0, 5376, 7936, 5376, 7936, 7936, 3584, 0, 57184, 57184, 57184,
57184, 106288, 106288, 106288, 0, 6912, 6912, 6912, 6912,
6912, 15232, 15232 ],
[ 0, 0, 5376, 7936, 5376, 7936, 7936, 3584, 0, 57184, 57184,
106288, 204568, 466716, 270084, 7936, 0, 6912, 6912, 6912,
6912, 6912, 15232, 15232 ],
[ 0, 0, 5376, 7936, 5376, 7936, 7936, 3584, 0, 57184, 57184,
237368, 991006, 794374, 7936, 7936, 0, 6912, 6912, 6912,
6912, 6912, 15232, 15232 ],
[ 0, 0, 5376, 7936, 5376, 7936, 7936, 3584, 0, 2088831, 2088831,
7936, 7936, 7936, 7936, 7936, 0, 6912, 6912, 6912, 6912,
6912, 15232, 15232 ] ];
var g = new baidu.zhidao.Sketchpad(document.getElementById("center"));
g.render();
var b = [], c = 0;
for ( var m = 0; m < o[0].length; m++) {
for ( var p = g.pxh; p > 0; p--) {
var f = Math.pow(2, p - 1);
if (o[0][m] & f) {
b.push( [ g.pxwidth * (g.pxh - p), g.pxheight * m ])
}
}
}
function d() {
var i = new baidu.fx.Timeline();
i.interval = 50;
i.duration = 160;
i.render = function(r) {
var q = document.body.style;
var t = Math.ceil(r / 0.25);
q.paddingTop = q.paddingLeft = [ 7, 4, 2, 1, 0 ][t] + "px"
};
i.launch()
}
function l(v, u) {
baidu.browser.ie && (u -= 100);
for ( var s = 0; s < v; s++) {
var r = true;
while (r) {
var q = g.pixels[Math.ceil(Math.random() * 182)];
if (q && q.busy) {
r = false;
q.busy = false
}
}
q.exploded = true;
g.field.appendChild(q.element);
q.element.style.top = (q.tempTop - q.rect_t) * g.scaleTo + "px";
var t = (q.tempLeft - q.rect_l) * g.scaleTo;
q.element.style.left = (t + g.arenaLeft) + "px";
q.element.style.backgroundColor = "";
q.element.bgColor = q.bgc;
baidu.fx.moveTo(q.element, [ q.left - g.position.left + h(q),
q.top - g.position.top ], {
duration : u,
interval : 30
})
}
}
function h(s) {
var r = g.pxwidth * Math.ceil(g.ix / 2);
var q = (s.lineno % 2);
var t = 1 * g.pxwidth;
q == 0 ? r -= t : r += t;
return s.rect_l <= r ? 0 : g.dis * t
}
function a(v, u) {
for ( var s = 0; s < v; s++) {
var r, q = true;
while (q) {
r = g.pixels[Math.ceil(Math.random() * (g.pixels.length - 1))];
if (!(r && r.busy)) {
q = false;
r.busy = true
}
}
r.element.style.backgroundColor = g.bgcolor;
r.show();
g.arena.appendChild(r.element);
var t = b[c++];
t[0] -= r.rect_l;
t[1] -= r.rect_t;
r.element.style.left = (r.left - g.position.left - g.arenaLeft)
+ "px";
baidu.fx.moveTo(r.element, t, {
duration : u,
interval : 50
})
}
}
function k(i) {
g.arenaMarginLeft = i;
g.arena.style.marginLeft = -i + "px"
}
var e = [
[ 10, function() {
a(3, 200)
} ],
[ 100, function() {
a(5, 200)
} ],
[ 200, function() {
a(8, 200)
} ],
[ 300, function() {
a(16, 200)
} ],
[ 400, function() {
a(32, 200)
} ],
[
500,
function() {
for ( var n = 0; n < g.otiose.length; n++) {
g.otiose[n].style.display = "none"
}
for ( var n = g.pixels.length - 1; n > -1; n--) {
!g.pixels[n].busy
&& (g.pixels[n].element.style.backgroundColor = g.bgcolor)
&& g.pixels[n].hide()
}
} ],
[ 500, function() {
for ( var q = 0; q < g.pixels.length; q++) {
var n = g.pixels[q];
if (!n.busy) {
n.show();
n.busy = true;
g.arena.appendChild(n.element);
var r = b[c++];
n.setPosLeft(r[0]);
n.setPosTop(r[1]);
n.element.style.backgroundColor = g.bgcolor;
if (c >= b.length) {
break
}
}
}
} ],
[
700,
function() {
var i = baidu.page.getViewHeight() - g.position.top
- 10;
var r = g.scaleTo = parseFloat((i / (g.pxheight * g.pxv))
.toFixed(2));
var q = g.width - g.pxwidth * g.pxh * r;
baidu.fx.scale(g.arena, {
transformOrigin : "right top",
duration : 200,
interval : 40,
from : 1,
to : r,
fade : false
})
} ],
[ 1600, function() {
g.draw(o[1]);
k(30)
} ],
[ 1700, function() {
g.draw(o[2]);
k(40)
} ],
[ 1800, function() {
g.draw(o[3]);
k(50)
} ],
[ 1900, function() {
g.draw(o[4]);
k(60)
} ],
[ 2000, function() {
g.draw(o[5]);
k(70)
} ],
[ 2100, function() {
g.draw(o[6]);
k(80)
} ],
[ 2200, function() {
g.draw(o[7]);
k(90)
} ],
[ 2300, function() {
g.draw(o[8]);
k(100)
} ],
[ 2400, function() {
g.draw(o[9]);
k(120);
d()
} ],
[ 2800, function() {
g.draw(o[10]);
k(130)
} ],
[ 2900, function() {
g.draw(o[11]);
k(140)
} ],
[ 3000, function() {
g.draw(o[12]);
k(150)
} ],
[ 3100, function() {
g.draw(o[13]);
k(160)
} ],
[ 3200, function() {
g.draw(o[14]);
k(170)
} ],
[ 3300, function() {
g.draw(o[15]);
k(180)
} ],
[ 3400, function() {
g.draw(o[16]);
k(190)
} ],
[ 3500, function() {
g.draw(o[17]);
k(200);
d()
} ],
[ 3900, function() {
g.draw(o[18]);
k(180)
} ],
[ 3900, function() {
g.draw(o[19])
} ],
[ 4000, function() {
g.draw(o[20])
} ],
[ 4100, function() {
g.draw(o[21])
} ],
[ 4200, function() {
g.draw(o[22])
} ],
[ 4600, function() {
g.field.style.left = g.zhong + "px";
g.arenaMarginLeft += g.zhong;
g.arena.style.marginLeft = -g.arenaMarginLeft + "px";
l(2, 200)
} ],
[ 4700, function() {
l(5, 200)
} ],
[ 4800, function() {
l(10, 200)
} ],
[ 4900, function() {
l(16, 200)
} ],
[ 5000, function() {
l(32, 200)
} ],
[
5200,
function() {
g.field.style.top = g.position.top + "px";
for ( var q = 0; q < g.pixels.length; q++) {
var n = g.pixels[q];
n.element.bgColor = n.bgc;
if (n.busy) {
g.field.appendChild(n.element);
n.element.style.backgroundColor = "";
n.element.style.top = (n.tempTop - n.rect_t)
* g.scaleTo + "px";
var r = (n.tempLeft - n.rect_l) * g.scaleTo;
n.element.style.left = (r + g.arenaLeft) + "px";
baidu.fx.moveTo(n.element, [
n.left + h(n) - g.position.left,
n.top - g.position.top ], {
duration : 200
})
}
if (!n.exploded) {
n.show();
n.element.style.backgroundColor = "";
n.element.style.top = n.top - g.position.top
+ "px";
n.element.style.left = n.left - g.position.left
+ h(n) + "px"
}
}
for ( var q = 0; q < g.otiose.length; q++) {
g.otiose[q].style.display = ""
}
} ],
[
5800,
function() {
g.arena.style.left = "0px";
g.arena.style.marginLeft = "0px";
baidu.dom.scale(g.arena, 1);
for ( var q = g.pixels.length - 1; q > -1; q--) {
var n = g.pixels[q];
if (h(n) > 0) {
g.arena.appendChild(n.element)
}
}
g.field.parentNode.insertBefore(g.arena, g.field);
g.arena.style.left = g.zhong + "px";
g.arena.style.top = g.position.top + "px";
baidu.fx.moveTo(g.field, [
g.pxwidth * (g.dis / 2) + g.zhong,
g.position.top ], {
duration : 600,
transition : function(i) {
return 1 - (Math.cos(i * 4.5 * Math.PI) * Math
.exp(-i * 6))
}
});
baidu.fx.moveTo(g.arena, [
g.pxwidth * (-g.dis / 2) + g.zhong,
g.position.top ], {
duration : 600,
transition : function(i) {
return 1 - (Math.cos(i * 4.5 * Math.PI) * Math
.exp(-i * 6))
}
})
} ],
[ 6600, function() {
for ( var q = 0; q < g.ts.length; q++) {
if (g.ts[q].offsetHeight < g.pxheight * 2) {
g.ts[q].style.visibility = ""
}
}
for ( var q = g.pixels.length - 1; q > -1; q--) {
var n = g.pixels[q];
if (h(n) > 0) {
g.field.appendChild(n.element);
n.element.style.left = n.left - g.position.left + "px"
}
}
g.field.appendChild(g.arena)
} ],
[
6700,
function() {
baidu.fx.moveTo(g.field, [ g.position.left,
g.position.top ], {
duration : 600,
onafterfinish : function() {
g.dismiss()
},
transition : function(i) {
return 1 - (Math.cos(i * 4.5 * Math.PI) * Math
.exp(-i * 6))
}
})
} ] ];
for ( var j = 0; j < e.length; j++) {
setTimeout(e[j][1], e[j][0] + 1200)
}
})();
分享到:
评论

相关推荐

    大学生创新创业训练计划经验分享.zip

    大学生创新创业训练计划(以下简称为“大创计划”)是一项旨在提升大学生创新能力和创业精神的实践活动。通过这项计划,学生可以在导师的指导下,自主开展研究性学习和创业实践。下面我将分享一些关于大创计划的经验和建议。

    node-v12.22.3-x86.msi

    Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。

    毕业设计-The coding solutions of Leetcode and 剑指Offer using .zip

    这里为你收集整理了关于毕业设计、课程设计可参考借鉴的资料一份,质量非常高,如果你投入时间去研究几天相信肯定对你有很大的帮助。到时候你会回来感谢我的。 本资源是经过本地编译测试、可打开、可运行的项目、文件或源码,可以用于毕业设计、课程设计的应用、参考和学习需求,请放心下载。 祝愿你在这个毕业设计项目中取得巨大进步,顺利毕业! 但还需强调一下,这些项目源码仅供学习和研究之用。在使用这些资源时,请务必遵守学术诚信原则和相关法律法规,不得将其用于任何商业目的或侵犯他人权益的行为。对于任何因使用本资源而导致的问题,包括但不限于数据丢失、系统崩溃或安全漏洞,风险自担哦!

    【微信小程序毕业设计】宠物店商城系统开发项目(源码+演示视频+说明).rar

    【微信小程序毕业设计】宠物店商城系统开发项目(源码+演示视频+说明).rar 【项目技术】 微信小程序开发工具+java后端+mysql 【演示视频-编号:282】 https://pan.quark.cn/s/cb634e7c02b5 【实现功能】 本系统实现的是和宠物相关的信息管理和发布,加入了商品销售的功能。操作角色为管理员和用户、商家,管理员的功能为用户管理、商家管理、宠物分类管理、宠物信息管理、商品分类管理、宠物用品管理、项目类型管理、服务项目管理、宠物日志管理、订单管理等;用户的功能为购买宠物、商品、预约服务发表日志管理订单等。商家功能为提供宠物、宠物用品、宠物服务,管理订单和服务预约等。

    雷迪森的工具包(95分以上课程大作业).zip

    Java SSM项目是一种使用Java语言和SSM框架(Spring + Spring MVC + MyBatis)开发的Web应用程序。SSM是一种常用的Java开发框架组合,它结合了Spring框架、Spring MVC框架和MyBatis框架的优点,能够快速构建可靠、高效的企业级应用。 1. Spring框架:Spring是一个轻量级的Java开发框架,提供了丰富的功能和模块,用于开发企业级应用。它包括IoC(Inverse of Control,控制反转)容器、AOP(Aspect-Oriented Programming,面向切面编程)等特性,可以简化开发过程、提高代码的可维护性和可测试性。 2. Spring MVC框架:Spring MVC是基于Spring框架的Web框架,用于开发Web应用程序。它采用MVC(Model-View-Controller,模型-视图-控制器)的架构模式,将应用程序分为模型层、视图层和控制器层,提供了处理请求、渲染视图和管理流程的功能。 3. MyBatis框架:MyBatis是一个持久层框架,用于与数据库进行交互。它提供了一种将数据库操作与Java对象映射起来的方式,避免了手动编写繁琐的SQL语句,并提供了事务管理和缓存等功能,简化了数据库访问的过程

    node-v9.10.1.tar.xz

    Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。

    基于B2C的网上拍卖系统_秒杀与竞价.zip

    基于B2C的网上拍卖系统主要用于帮助人们应用互联网方便快捷买到自己所中意的商品,并参与到秒杀与竞拍当中。 主要功能包括: 1.前台模块 (1)普通用户登录/注册。 (2)分类查看商品(普通商品与促销商品) (3)查看商品详细信息 (4)查看秒杀商品 (5)查看竞拍商品 (6)将商品加入购物车 (7)购买,结算功能 (8)留言 2.后台模块 (1)修改密码 (2)商品管理: -- 编辑/删除 -- 设置/取消促销 (3)秒杀商品:设置/取消秒杀 (4)竞拍商品:设置/取消竞拍 (5)订单管理:查看订单 (5)留言管理:查看/删除留言 项目访问路径: 前台:http://localhost:8080/sale 后台:http://localhost:8080/sale/user/adminlogin

    【前端素材】大数据-政务大数据共享交换平台.zip

    大数据技术指的是用于处理和分析大规模数据集的技术和工具。以下是一些常见的大数据技术和工具: Hadoop:Apache Hadoop是一个用于分布式存储和处理大规模数据的开源框架。它包括Hadoop Distributed File System(HDFS)用于数据存储和MapReduce用于数据处理。 Spark:Apache Spark是一个快速、通用的集群计算系统,提供了比MapReduce更快的数据处理能力。它支持内存计算和更多复杂的数据处理流程。 NoSQL数据库:NoSQL数据库(如MongoDB、Cassandra等)则更适用于处理这类数据。 数据仓库:数据仓库是一个用于集成和分析大规模数据的存储系统,一些知名的数据仓库包括Snowflake、Amazon Redshift等。 数据湖:数据湖是一个存储结构化和非结构化数据的存储池,用于支持数据分析和机器学习应用。 机器学习:大数据技术也广泛应用于机器学习领域,支持大规模数据的模型训练和预测分析。 流式处理:针对实时数据处理需求,流式处理技术(如Apache Kafka、Apache Flink)可以实时。

    【前端素材】大数据-气象预报大数据平台.zip

    大数据技术指的是用于处理和分析大规模数据集的技术和工具。以下是一些常见的大数据技术和工具: Hadoop:Apache Hadoop是一个用于分布式存储和处理大规模数据的开源框架。它包括Hadoop Distributed File System(HDFS)用于数据存储和MapReduce用于数据处理。 Spark:Apache Spark是一个快速、通用的集群计算系统,提供了比MapReduce更快的数据处理能力。它支持内存计算和更多复杂的数据处理流程。 NoSQL数据库:NoSQL数据库(如MongoDB、Cassandra等)则更适用于处理这类数据。 数据仓库:数据仓库是一个用于集成和分析大规模数据的存储系统,一些知名的数据仓库包括Snowflake、Amazon Redshift等。 数据湖:数据湖是一个存储结构化和非结构化数据的存储池,用于支持数据分析和机器学习应用。 机器学习:大数据技术也广泛应用于机器学习领域,支持大规模数据的模型训练和预测分析。 流式处理:针对实时数据处理需求,流式处理技术(如Apache Kafka、Apache Flink)可以实时。

    数学模型算法多目标决策分析方法.pptx

    数学模型算法

    ############ 光电传感器的描述

    光电传感器

    node-v12.17.0-x86.msi

    Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。

    Web开发工具和方法课程的学术项目Java、Spring、Hibernate、Angular

    Java SSM项目是一种使用Java语言和SSM框架(Spring + Spring MVC + MyBatis)开发的Web应用程序。SSM是一种常用的Java开发框架组合,它结合了Spring框架、Spring MVC框架和MyBatis框架的优点,能够快速构建可靠、高效的企业级应用。 1. Spring框架:Spring是一个轻量级的Java开发框架,提供了丰富的功能和模块,用于开发企业级应用。它包括IoC(Inverse of Control,控制反转)容器、AOP(Aspect-Oriented Programming,面向切面编程)等特性,可以简化开发过程、提高代码的可维护性和可测试性。 2. Spring MVC框架:Spring MVC是基于Spring框架的Web框架,用于开发Web应用程序。它采用MVC(Model-View-Controller,模型-视图-控制器)的架构模式,将应用程序分为模型层、视图层和控制器层,提供了处理请求、渲染视图和管理流程的功能。 3. MyBatis框架:MyBatis是一个持久层框架,用于与数据库进行交互。它提供了一种将数据库操作与Java对象映射起来的方式,避免了手动编写繁琐的SQL语句,并提供了事务管理和缓存等功能,简化了数据库访问的过程

    云计算基础课件—云安全dr.pptx

    云计算基础课件—云安全dr.pptx

    jizu3.cod

    jizu3.cod

    线性规划模型及应用中的整数规划讲义.pptx

    数学模型算法

    JAVA毕业设计之医疗挂号管理系统(springboot+mysql)完整源码.zip

    医疗挂号管理系统是一款基于Spring Boot和MySQL的Java毕业设计项目,旨在为医院提供一个高效、便捷的挂号管理解决方案。该系统采用了当下流行的微服务架构,通过Spring Boot框架实现快速开发和部署,同时使用MySQL数据库进行数据存储和管理。 在技术方面,本项目主要使用了以下技术: Spring Boot:一个基于Spring框架的快速开发工具,可以简化项目的搭建、配置和部署过程,提高开发效率。 MySQL:一款开源的关系型数据库管理系统,用于存储和管理医疗挂号管理系统中的数据。 MyBatis:一款优秀的持久层框架,用于实现Java对象与数据库之间的映射关系,简化数据库操作。 Redis:一款高性能的键值对缓存数据库,用于缓存系统中的热点数据,提高系统性能。 Bootstrap:一款前端UI框架,用于构建响应式的用户界面,提高用户体验。 jQuery:一款轻量级的JavaScript库,用于简化前端开发,实现动态效果和Ajax交互。 在功能方面,医疗挂号管理系统主要包括以下模块: 用户注册与登录:用户可以注册并登录系统,创建个人账户。 医生信息管理:管理员可以添加、修改和删除医生信息,包括姓名、职称、科室等。 挂号管理:用户可以选择医生和就诊时间进行挂号,支持在线支付挂号费用。 挂号记录查询:用户可以查看自己的挂号记录,包括挂号时间、医生信息等。 取消挂号:用户可以在规定时间内取消挂号,系统将退还挂号费用。 预约提醒:系统会在预约就诊前通过短信或邮件提醒用户。 统计报表:管理员可以查看系统的挂号统计数据,包括每日挂号人数、各科室挂号人数等。 通过这些功能,医疗挂号管理系统为医院提供了一个便捷、高效的挂号管理解决方案,有助于提高医疗服务质量和患者满意度。

    基于C++ QT的航空订票系统 .zip

    基于QT的系统

    线性规划模型及应用中的单纯形方法讲义.pptx

    数学模型算法

    小程序-43-基于小程序的企业产品推广系统-源码.zip

    提供的源码资源涵盖了小程序应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 适合毕业设计、课程设计作业。这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建起开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。 所有源码均经过严格测试,可以直接运行,可以放心下载使用。有任何使用问题欢迎随时与博主沟通,第一时间进行解答!

Global site tag (gtag.js) - Google Analytics