我使用 JavaScript 注释来设置选项
/*jslint undef: false, browser: true */
根据此处的 jslint 文档容忍错误排序的函数和变量定义。我也尝试将其设置为“true”,但这也不起作用。
但我仍然得到
在定义之前使用了“vFlipB”。
vFlipB('mi_cover');
这个函数首先在第 299 行调用:
Mo.UserAny = {
pre : function (o_p) {
vFlipB('mi_cover');
if ((localStorage.hash === '0') || (localStorage.hash === undefined) || (localStorage.hash === null)) {
o_p.result = 'complete';
Vi.Ani.flipP('sp');
return o_p;
}
. . .
但是直到它下面才被定义:
在 958
/**
** vFlipB
*/
function vFlipB( current_id ) {
// turn on
var current_link = document.getElementById( current_id + '_l' ),
current_box = document.getElementById( current_id );
current_box.style.opacity = 1;
current_link.style.borderBottom = '2px solid #31baed';
// turn off
if( vFlipB.previous_box !== undefined && vFlipB.previous_box !== current_box ) {
vFlipB.previous_box.style.opacity = 0;
vFlipB.previous_link.style.borderBottom = '';
}
// set current to static previous
vFlipB.previous_box = current_box;
vFlipB.previous_link = current_link;
}