0
我得到這個錯誤在運行時可以任何身體幫助我爲什麼我得到這個錯誤?Javascript代碼對象預期錯誤
感謝
ShowHelpTopic('/Help/Help2.htm');;void(0)
這是我在動態模式下頁面得到錯誤。
這是我在頁面中的代碼。
stm_aix("p3i0", "p1i0", [0, "Searching for items in Benefit Code list", "", "", -1, -1, 0, "javascript:ShowHelpTopic('/Help/Help1.htm')", "_self", "", "Help Topics", "060508icon4.gif", "060508icon5.gif"], 526, 0);stm_aix("p3i0", "p1i0", [0, "Creating new Benefit Codes", "", "", -1, -1, 0, "javascript:ShowHelpTopic('/Help/Help2.htm')", "_self", "", "Help Topics", "060508icon4.gif", "060508icon5.gif"], 526, 0);
This ShowHelpTopic
function in my js file。
function ShowHelpTopic(url){
window.open(url, "HelpTopics", "height=600,width=900,resizable=1,menubar=0,toolbar=0,location=0,directories=0,scrollbars=1,status=0");
}
爲什麼我在我的asp.net mvc應用程序中出現運行時錯誤?
我猜你的'item'變量不是一個對象,你如何初始化它? – Clive