高手请进 在firefox中函数出错的问题 你可以参考http://community.csdn.net/Expert/topic/4754/4754449.xml?temp=.6579706 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不是event.keyCode==13出错,该句执行是document.getElementById("say").value="";出错 function submit_say(event,domain){ var oSay = document.getElementById("say"); if( event.keyCode==13 || oSay.value.length!=0 ){ getGiftFromServer(domain+"/say.php?say_value="+oSay.value); oSay.value=""; }} 调试的时候可以在if之前插入:alert(oSay);alert(oSay.tagName); 就是event.keyCode==13出错,FF下的Event对象不能这样使用 我说了不是这一句出错去掉document.getElementById("say").value="";这一句就不出错了 因为在调用函数的地方已经将event传过来了,所以不是event的错以下方法已经调试通过了:function submit_say(event,domain){ var oSay = document.getElementById("say"); alert(oSay); alert(oSay.tagName); if( event.keyCode==13 || oSay.value.length!=0 ){ //getGiftFromServer(domain+"/say.php?say_value="+oSay.value); oSay.value=""; }} 漂浮广告 碰到网页边缘弹回的效果 怎样让它正常 不在一行蹦跶。。。 关于取得当前页的相对路径 js创建可重用对象的简单问题 给javascript初学者一点指引吧 在Html中目录Tree跳转到本页面其他框架中方法! 关于js类的问题,急。。。 登录提示的效果,高手请指教 form action能接收变量吗? 为什么这段代码在兼容模式下就不能运行了~ 求屏蔽ie快捷键的方法。不好意思我只有20分了 已经实现固定多行多列的Table,怎样实现调整列宽,难吗? MzTreeView问题:怎样一次关闭所有节点?
var oSay = document.getElementById("say");
if( event.keyCode==13 || oSay.value.length!=0 ){
getGiftFromServer(domain+"/say.php?say_value="+oSay.value);
oSay.value="";
}
}
alert(oSay);
alert(oSay.tagName);
去掉document.getElementById("say").value="";这一句就不出错了
var oSay = document.getElementById("say");
alert(oSay);
alert(oSay.tagName);
if( event.keyCode==13 || oSay.value.length!=0 ){
//getGiftFromServer(domain+"/say.php?say_value="+oSay.value);
oSay.value="";
}
}