IE8 提示javascript “对象不支持此属性或方法”

ddys_2002 2016-01-29 10:16:48
问: IE8 提示 “对象不支持此属性或方法”if request("otype")="tuihuo" then
省略。。
if request("otype")="diaochu" then
省略
---------------------
<script language="javascript">
<!--
var ie =navigator.appName=="Microsoft Internet Explorer"?true:false;
function $(objID)
{
return document.getElementById(objID);
}
function dosubmit(otype) {
if (document.form1.shuliang.value =="")
{
alert(" 退货数量不能为空!");
return false;
}
if (document.form1.fctime.value =="")
{
alert(" 退货日期不能为空!");
return false;
}
document.form1.action='kucunfcd.asp?otype='+otype;//IE8提示这一行有问题,但用安卓浏览器正常
document.form1.submit();
}
//-->
</SCRIPT>
<form method="post" name="form1">
<input type="button" name="tuihuo" value="退 货" onClick="dosubmit('tuihuo')" tabindex="9"/> 
<input type="button" name="diaochu" value="调 出" onClick="dosubmit('diaochu')" tabindex="10" />
</form>
...全文
1614 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
Go 旅城通票 2016-01-31
  • 打赏
  • 举报
回复
你表单里面有没有shuliang,fctime这个2个控件,而且你贴的前面是asp代码,需要通过http协议访问,js当然不是支持asp代码
-0000- 2016-01-31
  • 打赏
  • 举报
回复
Maybe IE8 does not support that property or method, you should change another one and retry 省略。。。
ddys_2002 2016-01-31
  • 打赏
  • 举报
回复
已经找到原因了,多谢二位

87,907

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧