Javascript onClick错误 [英] Javascript onClick Error

查看:61
本文介绍了Javascript onClick错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。单击按钮时,onClick函数有问题。臭名昭着的IE错误报告将其链接回按钮本身,但我不认为是这种情况(第48,49行 - 对象不支持此属性或方法)。自从我刚开始以来,代码本身并不完整,可以在以后完成其余的工作。无论如何,这是我到目前为止所拥有的...

Hi all. I have a problem with an onClick function working when I click a button. The infamous IE error reporting links it back to the button itself, but I don''t think that''s the case (Line 48, 49 - Object doesn''t support this property or method). The code itself isn''t complete since I just started and can finish the rest later. Anyways, here''s what I have so far...

展开 | 选择 | Wrap | 行号

推荐答案

你在第4,5和5行有错误12:
you have errors on line 4, 5 & 12:
展开 | 选择 | Wrap | 行号


Dormilich,

某处仍有错误。我改变了&&。另外,当只有一个元素从中获取值时,为什么我会使用getElement s
Dormilich,
There''s still an error somewhere. I changed the &&. Also, why would I use the getElements when there is only one element to get a value from?


@ risk32


:)因为这是语法


Freddie
@risk32
:) Because that is the syntax

Freddie


这篇关于Javascript onClick错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆