为什么老提示 'rmopo' 未定义?
<!--Combobox-->
function combobox(sobj,obj2,obj3,obj4,obj5,obj6,obj7,al_v,al_t,zhiwu,youxiang,shouji,dianhua,dizhi,bumen)
{
var rmopo = window.createPopup();
function rm(i,oct,h)
{
var i2=eval(i);
var oct=eval(oct);
var w=eval(i).offsetWidth;
var h=eval(h);
var lefter = i2.offsetLeft-1; var topper = i2.offsetHeight;
rmopo.document.body.innerHTML = oct.innerHTML;
rmopo.document.body.style.border="1px solid #3162A6";
rmopo.document.body.style.background="#F6F6F6";
rmopo.show(lefter, topper, w, h, i2);
}
loadcombobox(sobj,obj2,obj3,obj4,obj5,obj6,obj7,al_v,al_t,zhiwu,youxiang,shouji,dianhua,dizhi,bumen);
function loadcombobox(obj,obj2,obj3,obj4,obj5,obj6,obj7,al_v,al_t,zhiwu,youxiang,shouji,dianhua,dizhi,bumen)
{
var obj = eval(obj)
var obj2 = eval(obj2)
var obj3 = eval(obj3)
var obj4 = eval(obj4)
var obj5 = eval(obj5)
var obj6 = eval(obj6)
var obj7 = eval(obj7)
theListArrayV = al_v;
theListArrayT = al_t;
theListArrayZhiwu=zhiwu;
theListArrayYouxiang=youxiang;
theListArrayShouji=shouji;
theListArrayDianhua=dianhua;
theListArrayDizhi=dizhi;
theListArrayBumen=bumen;
var tempStr='<DIV id="'+obj.id+'showcombox" style="position:relative;visibility:hidden">'
+'<DIV class="ac_menu" id="'+obj.id+'ListDiv" style="FONT-SIZE: 12px; Z-INDEX: 10; POSITION: absolute;OVERFLOW-Y:auto; WIDTH:expression('+obj.offsetWidth+'-1);">'
for(var i=0;i<theListArrayV.length;i++)
tempStr+='<DIV class="ac_menuitem" onmouseover="this.style.backgroundColor=\'#D6DEEC\';" onmouseout="this.style.backgroundColor=\'\';" onclick="this.selectedflag=1;parent.document.all.'+obj.id+'.value=this.value;parent.document.all.'+obj2.id+'.value=\''+htmlEncode(theListArrayZhiwu[i])+'\';parent.document.all.'+obj3.id+'.value=\''+htmlEncode(theListArrayYouxiang[i])+'\';parent.document.all.'+obj4.id+'.value=\''+htmlEncode(theListArrayShouji[i])+'\';parent.document.all.'+obj5.id+'.value=\''+htmlEncode(theListArrayDianhua[i])+'\';parent.document.all.'+obj6.id+'.value=\''+htmlEncode(theListArrayDizhi[i])+'\';parent.document.all.'+obj7.id+'.value=\''+htmlEncode(theListArrayBumen[i])+'\';parent.document.all.'+obj.id+'.blur();" style="cursor:default;" value="'+htmlEncode(theListArrayV[i])+'" textvalue="'+htmlEncode(theListArrayT[i])+'">'+htmlEncode(theListArrayT[i])+'</DIV>';
tempStr+='</DIV></DIV>';
obj.insertAdjacentHTML("afterEnd",tempStr);
obj.onfocus=AC_OnFocus;
obj.onclick=AC_OnFocus;
obj.onblur=AC_OnBlur;
obj.onkeydown=AC_OnKeyDown;
obj.autoComplete="off";
obj.onpropertychange=AC_OnPropertyChange;
}
function AC_OnFocus(obj)
{
if(obj==null) obj=event.srcElement;
popmenu=eval(obj.id+"showcombox");
rm(obj,popmenu,130);
AC_OnPropertyChange(obj);
}
function AC_OnBlur(obj)
{
rmopo.hide();
}
function AC_OnPropertyChange(obj)
{
if(obj==null) obj=event.srcElement;
var dv = eval("rmopo.document.all['"+obj.id+"ListDiv']");
theListDiv = dv
if(theListDiv==null) return ;
var theListDivChildren=theListDiv.children;
theListDiv.selectedIndex=-1;
var theFirstVisibleIndex=-1;
var objValue=obj.value;
for(var i=0;i<theListDivChildren.length;i++)
{
if(theListDiv.children[i].textvalue.indexOf(objValue)==0)
{
if(theFirstVisibleIndex==-1) theFirstVisibleIndex=i;
theListDivChildren[i].style.backgroundColor="#F6F6F6";
theListDivChildren[i].style.display="";
}
else
theListDivChildren[i].style.display="none";
if(theListDiv.selectedIndex==-1 && theListDiv.children[i].textvalue==objValue)
{
theListDiv.selectedIndex=i;
}
}
if(theListDiv.selectedIndex==-1 && theFirstVisibleIndex!=-1)
{
theListDiv.selectedIndex=theFirstVisibleIndex;
}
if(theListDiv.selectedIndex!=-1)
{
theListDiv.children[theListDiv.selectedIndex].style.backgroundColor="#D6DEEC";
}
adjustListDivScroll(obj);
}
function AC_OnKeyDown(obj)
{
if(obj==null) obj=event.srcElement;
var AC_TAB = 9;
var AC_ENTER = 13;
var AC_UP_ARROW = 38;
var AC_DOWN_ARROW = 40;
var dv = eval("rmopo.document.all['"+obj.id+"ListDiv']");
theListDiv = dv
if(theListDiv==null) return ;
var keyCode=event.keyCode;
if(keyCode==AC_ENTER) keyCode=event.keyCode=AC_TAB;
if(keyCode==AC_TAB && theListDiv.selectedIndex!=-1)
{
obj.value=theListDiv.children[theListDiv.selectedIndex].value;
rmopo.hide() ;
}
if(keyCode==AC_UP_ARROW && theListDiv.selectedIndex!=-1)
{
for(var i=theListDiv.selectedIndex-1;i>-1;i--)
{
if(theListDiv.children[i].style.display!="none")
{
theListDiv.children[theListDiv.selectedIndex].style.backgroundColor="#F6F6F6";
theListDiv.selectedIndex=i;
theListDiv.children[theListDiv.selectedIndex].style.backgroundColor="#D6DEEC";
adjustListDivScroll(obj);
break;
}
}
}
if(keyCode==AC_DOWN_ARROW && theListDiv.selectedIndex!=-1)
{
for(var i=theListDiv.selectedIndex*1+1;i<theListDiv.children.length;i++)
{
if(theListDiv.children[i].style.display!="none")
{
theListDiv.children[theListDiv.selectedIndex].style.backgroundColor="#F6F6F6";
theListDiv.selectedIndex=i;
theListDiv.children[theListDiv.selectedIndex].style.backgroundColor="#D6DEEC";
adjustListDivScroll(obj);
break;
}
}
return;
}
}
function adjustListDivScroll(obj)
{
if(obj==null) obj=event.srcElement;
var dv = eval("rmopo.document.all['"+obj.id+"ListDiv']");
theListDiv = dv
if ( theListDiv==null || theListDiv.selectedIndex==-1 ) return ;
var i=theListDiv.selectedIndex;
if((theListDiv.children[i].offsetTop<theListDiv.scrollTop)||(theListDiv.children[i].offsetTop>theListDiv.scrollTop+120))
theListDiv.scrollTop=theListDiv.children[i].offsetTop-85;
}
function htmlEncode(str)
{
if(str==null) return "";
str=str.replace(/</ig,"<")
str=str.replace(/>/ig,">");
str=str.replace(/"/ig,""");
return str;
}
}
<!--end-->
相关推荐
usecase.svg
usecase.svg
电气数据有源配电网实时随机调度数据集
内容概要:本文档名为《【电气数据】有源配电网实时随机调度数据集》,实则为一份综合性科研资源合集,涵盖了多个前沿技术领域的Matlab/Simulink仿真模型与算法实现。主要内容包括有源配电网实时随机调度、输电线路故障辨识、永磁同步电机(PMSM)高性能控制、无人机与多智能体协同路径规划、电力系统优化运行、差分隐私估计、智能优化算法(如A*、RRT*、PSO、FA等)对比研究,以及机器学习在风电/光伏功率预测中的应用。资源形式包含可复现的代码、仿真模型、数据集和参考文献,覆盖智能优化、机器学习、信号处理、图像处理、通信、雷达追踪、路径规划等多个关键技术方向,并提供详细的网盘下载链接与在线目录索引,便于系统性查阅与科研复用。; 适合人群:面向具备一定科研基础的电气工程、自动化、控制科学与工程、计算机仿真等相关专业的研究生、科研人员及工程技术开发者,尤其适用于熟悉Matlab/Simulink环境并致力于算法验证、系统建模与科研创新的专业人士。; 使用场景及目标:①支撑电力系统调度、电机控制、路径规划等课题的算法开发与仿真验证;②服务于学术论文复现、科研项目推进与技术创新研究;③辅助完成学位论文、期刊投稿或工程项目原型设计,提升科研效率与成果质量。; 阅读建议:建议结合提供的在线资源目录(荔枝科研社)与百度网盘链接系统化浏览,优先选取与自身研究方向契合的内容进行深入实践,注意区分不同算法的应用边界与性能差异,注重代码实现与理论分析的深度融合,以实现科研能力的有效跃升。
演讲脱敏一般要多久.pdf
演讲脱敏一般要多久
40 《脱敏演讲训练感悟》 洗衣连锁老板 手不会动的那些年.docx
40 《脱敏演讲训练感悟》 洗衣连锁老板 手不会动的那些年
Stitch 设计技能 的 Agent 技能与插件
一组面向 Google Stitch 的 Agent 技能与插件,遵循 Agent Skills 开放标准。兼容包括 Antigravity、Claude Code、Codex、Cursor、GitHub Copilot 和 OpenCode 在内的编码智能体。


