我試着找出錯誤我在我的網頁上的javascrip函數得到的,所以我說try和catch JavaScript的意外標識符
function guardarMisDatos() throws Exception {
try{
...
} catch (Exception e){
alert("error: ", e);
}
但是當我打開網頁,鍍鉻web控制檯給我誤差在
function guardarMisDatos() throws Exception {
和錯誤類型爲「未捕獲的SyntaxError:意外標識符」 哪裏是錯誤?它是一種正確的方式來檢查方式的功能不被觸發的第一次點擊?
這個答案是好的,但我仍然無法得到知道我收到的錯誤。我在這裏發佈了真正的問題,如果你想幫助我http://stackoverflow.com/questions/10531486/encodeuricomponent-fails-the-first-time-need-two-clicks-to-work – Stefano