當(dāng)我在Chrome上為彈出式日歷運行Java腳本時,會收到此消息。但是,它可以在IE上運行。我無法弄清楚這個錯誤是什么意思。 function getDate(Src, Msg) { var left, top, date; date = document.forms[0].item(Src,0).value; date = window.showModalDialog('/QHOS/CalendarPopup.aspx?Src=' + Src + '&d=' + date + '&msg=' + Msg,'Calendar','dialogHeight:320px; dialogWidth:228px; edge:Sunken; center:Yes; help:No; resizable:no; status:No; unadorned:No; scroll:No;'); if ( date != null ) { document.forms[0].item(Src,0).value = date; } } 特別是與這條線有關(guān)。date = document.forms[0].item(Src,0).value;
document.forms [0] .item不是函數(shù)
翻閱古今
2021-03-30 21:14:53