错误的参数数量或无效的属性分配 [英] Wrong number of arguments or invalid property assignment
本文介绍了错误的参数数量或无效的属性分配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个功能
Hi,
I have a function
<IMG id="imgClose" onmouseover="javascript:mouseOver(this,'28 outerClose_on.GIF')" title="Close (Esc)"
style="CURSOR: hand" onclick="javascript:CloseWindow();" tabIndex="5" önmouseout="javascript:mouseOut(this,'28 outerClose_off.GIF')"
src="../AxCommon/Images/28 outerClose_off.GIF" tag="4">
function mouseOver(img,name)
{
//debugger
img.src = '../AxCommon/Images/' + name;
img.style.cursor = 'hand';
}
function mouseOut(img,name)
{
//debugger
img.src = '../AxCommon/Images/' + name;
img.style.cursor = 'default';
}
当读取javascript函数时,出现参数错误错误.
I have got an error wrong parameters when javascript function reads.
推荐答案
我没有弄清楚问题出在哪里,只是因为有一种非常方便的方法使用jQuery进行此类操作:
http://api.jquery.com/hover/ [ http://en.wikipedia.org/wiki/JQuery [ http://docs.jquery.com/Tutorials:How_jQuery_Works [ http://docs.jquery.com/Tutorials [ http://docs.jquery.com/Main_Page [
I did not figure out what''s the problem, just because there is a very convenient way of doing such things, with jQuery:
http://api.jquery.com/hover/[^].
If you need to learn jQuery (highly recommended), please see:
http://en.wikipedia.org/wiki/JQuery[^],
http://docs.jquery.com/Tutorials:How_jQuery_Works[^],
http://docs.jquery.com/Tutorials[^],
http://docs.jquery.com/Main_Page[^].
—SA
这篇关于错误的参数数量或无效的属性分配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文