
这段代码怎么回事,哪位高人给指点一下,不胜感激!
<tdwidth="30%"class="page"><inputname="utiSubjectId"type="text"class="codecode"ondblc...
<td width="30%" class="page"> <input name="utiSubjectId" type="text" class="codecode"
ondblclick="code_CodeQuery(this,'utiSubjectId','0','Y');"
onkeyup="code_CodeQuery(this,'utiSubjectId','0','Y');" ></td>
函数在这了,关键我不是很清楚这个函数干什么用的。
function code_CodeQuery(field,codeType,codeRelation,isClear,otherCondition,callBackMethod,getDataMethod){
if(event.type=="keyup"){
var charCode=window.event.keyCode;
if(!(charCode==13 & window.event.ctrlKey)){
return;
}
}
inCodeQuery=true;
var cf=document.all.CodeFrame;
cf.style.display="";
field.style.display="none";
private_Code_CallService(field,"query",codeType,codeRelation,isClear,otherCondition,callBackMethod,getDataMethod);
field.style.display="";
inCodeQuery=false; 展开
ondblclick="code_CodeQuery(this,'utiSubjectId','0','Y');"
onkeyup="code_CodeQuery(this,'utiSubjectId','0','Y');" ></td>
函数在这了,关键我不是很清楚这个函数干什么用的。
function code_CodeQuery(field,codeType,codeRelation,isClear,otherCondition,callBackMethod,getDataMethod){
if(event.type=="keyup"){
var charCode=window.event.keyCode;
if(!(charCode==13 & window.event.ctrlKey)){
return;
}
}
inCodeQuery=true;
var cf=document.all.CodeFrame;
cf.style.display="";
field.style.display="none";
private_Code_CallService(field,"query",codeType,codeRelation,isClear,otherCondition,callBackMethod,getDataMethod);
field.style.display="";
inCodeQuery=false; 展开
2个回答
展开全部
就是一个监控键盘输入事件的吧
if(!(charCode==13 & window.event.ctrlKey)){
return;
}
13好像是回车的char 后面是ctrl 然后根据用户的键盘操作事件来做下面的一些事情 至于你这下面写的这些 就只有你自己才明白了 而且
code_CodeQuery(field,codeType,codeRelation,isClear,otherCondition,callBackMethod,getDataMethod) ----------------7个参数 而你的调用code_CodeQuery(this,'utiSubjectId','0','Y') 才传4个参数 会报错的吧
if(!(charCode==13 & window.event.ctrlKey)){
return;
}
13好像是回车的char 后面是ctrl 然后根据用户的键盘操作事件来做下面的一些事情 至于你这下面写的这些 就只有你自己才明白了 而且
code_CodeQuery(field,codeType,codeRelation,isClear,otherCondition,callBackMethod,getDataMethod) ----------------7个参数 而你的调用code_CodeQuery(this,'utiSubjectId','0','Y') 才传4个参数 会报错的吧
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询