【绝】在web工程下 调用js 日历控件 报错【missing ( before function parameters)
报错代码
function document.onclick() //任意点击时关闭该控件 //ie6的情况可以由下面的切换焦点处理代替{ with(window.event) { if (srcElement.getAttribute("Author")==null && srcElement != outObject && srcElement != outButton) closeLayer(); }} 解决方案
function document.onclick() 改成document.onclick=function()