解決firefox not well-formed錯誤

在使用輸出流前先設置contentType:

response.setContentType("text/plain");


參考鏈接:

http://stackoverflow.com/questions/677902/not-well-formed-error-in-firefox-when-loading-json-file-with-xmlhttprequest


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章