JS中找不到函数的定义
下面是ComponentArt里一个JS的代码,可是一些对象,我没有找到它的定义
比如:
ComponentArt_DragBeginHandler,ComponentArt_DragMoveHandler
这是怎么回事?它们如何执行或返回呢?我对JS的了解不够深,是不是有别的特殊的定义方式?
我ComponentArt的整个项目里都找了,这2个对象没有别处出现过。。。
window._q133 = function(e, _2, _3, _4, _5, _6, _7, _8, _9, _a) {
window.ComponentArt_DragHorizontal = _9;
window.ComponentArt_DragVertical = _a;
window.ComponentArt_DragThreshold = _3;
window._qF3 = _2;
window.ComponentArt_DragInProgress = false;
window.ComponentArt_DragBeginHandler = _6;
window.ComponentArt_DragMoveHandler = _7;
window.ComponentArt_DragDropHandler = _8;
window.ComponentArt_DragOffsetX = _4;
window.ComponentArt_DragOffsetY = _5;
var _x = cart_browser_ie ? event.clientX + (document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft: document.body.scrollLeft) : e.pageX;
var _y = cart_browser_ie ? event.clientY + (document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop: document.body.scrollTop) : e.pageY;
window.ComponentArt_DragBeginX = _x;
window.ComponentArt_DragBeginY = _y;
document.onmousemove = ComponentArt_Drag;
document.onmouseup = ComponentArt_EndDrag;
if (_3 == 0) {
ComponentArt_BeginDrag(_x, _y);
}
};
window.ComponentArt_BeginDrag = function(x, y) {
if (ComponentArt_DragBeginHandler) {
var _f = ComponentArt_DragBeginHandler(x, y);
if (_f) {
window._qF3 = _f;
}
}
ComponentArt_DragInProgress = true;
};
window.ComponentArt_Drag = function(e) {
ComponentArt_CancelEvent(e);
var _x = cart_browser_ie ? event.clientX + (document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft: document.body.scrollLeft) : e.pageX;
var _y = cart_browser_ie ? event.clientY + (document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop: document.body.scrollTop) : e.pageY;
if (!ComponentArt_DragInProgress && Math.max(Math.abs(_x - ComponentArt_DragBeginX), Math.abs(_y - ComponentArt_DragBeginY)) > ComponentArt_DragThreshold) {
ComponentArt_BeginDrag(_x, _y);
}
if (ComponentArt_DragInProgress) {
if (ComponentArt_DragMoveHandler) {
ComponentArt_DragMoveHandler(_qF3, _x, _y);
}
if (ComponentArt_DragHorizontal) {
_qF3.style.left = (_x - ComponentArt_DragOffsetX) + "px";
}
if (ComponentArt_DragVertical) {
_qF3.style.top = (_y - ComponentArt_DragOffsetY) + "px";
}
}
};
window.ComponentArt_EndDrag = function(e) {
var _x = cart_browser_ie ? event.clientX + (document.documentElement && document.documentElement.scrollLeft ? document.documentElement.scrollLeft: document.body.scrollLeft) : e.pageX;
var _y = cart_browser_ie ? event.clientY + (document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop: document.body.scrollTop) : e.pageY;
if (ComponentArt_DragInProgress) {
ComponentArt_DragDropHandler(_qF3, _x, _y);
}
_qF3 = null;
ComponentArt_DragMoveHandler = null;
ComponentArt_DragDropHandler = null;
ComponentArt_DragInProgress = false;
document.onmousemove = null;
document.onmouseup = null;
}; --------------------编程问答-------------------- 看看页面是不是还引用别的Js文件了,可能在别的Js文件里, --------------------编程问答--------------------
找了,确实没有的 --------------------编程问答-------------------- 项目里可能引用了.dll文件,如System.office系列。 --------------------编程问答--------------------
我是就是源文件里看的,不可能再有DLL的封装了
补充:.NET技术 , ASP.NET