Fw: [問題] IE function 未定義 chrome可以run
※ [本文轉錄自 Ajax 看板 #1JY4qlGo ]
作者: jacky951 (藍憶) 看板: Ajax
標題: [問題] IE function 未定義 chrome可以run
時間: Fri May 30 17:19:38 2014
版上先進大家好:
今天在寫jsp/javascript網頁的時候遇到一個問題,問題如下:
------------------------
file1.jsp
<%@ taglib prefix="s" uri="/struts-tags">
<s: include value ="../common/common.jsp">
<s:textfield ..... ondbclick="openCommonDialog(this)"/>
------------------------
common.jsp
<%@ taglib prefix="sj" uri="/struts-jquery-tags">
<script type="text/javascript>
function openCommonDialog(element){
dosomething...
}
</script>
<sj:dialog .....>
這些功能在chrome裡面都可以正常的執行,不過換到IE就不行了
會出現SCRIPT5009: 'openCommonDialog' 未經定義
錯誤代碼已經上網找過,不過還是找不到解決方法
不知道版上先進們有人有遇過相同問題嗎?
--
當你有責任心的時候
你會想把事情做到完
當你有羞恥心的時候
你才會想把事情做到完美
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 60.251.44.33
※ 文章網址: http://www.ptt.cc/bbs/Ajax/M.1401441583.A.432.html
※ 發信站: 批踢踢實業坊(ptt.cc)
※ 轉錄者: jacky951 (60.251.44.33), 05/30/2014 17:20:38
→
05/30 19:54, , 1F
05/30 19:54, 1F