关于Eclipse中j脚本错误!
{
with(window.event)
{ if (srcElement.getAttribute("Author")==null && srcElement != outObject && srcElement != outButton)
closeLayer();
}
}
function document.onkeyup()
{
if (window.event.keyCode==27){
if(outObject)outObject.blur();
closeLayer();
}
else if(document.activeElement)
if(document.activeElement.getAttribute("Author")==null && document.activeElement != outObject && document.activeElement != outButton)
{
closeLayer();
}
}
上边是日期控件中的一段脚本,Eclipse提示有错误!missing before function parameters
可是我用记事本写了个测试的HTML没有错误!
为什么Eclipse里编译不过去!这是怎么回事!

