2014-04-13 59 views
0

我們使用Django 1.4與django-dajaxice。我最近發現,django-dajaxice覆蓋默認的XMLHttpRequest對象[http://django-dajaxice.readthedocs.org/en/latest/]。這是一個問題,因爲我們想要使用https://github.com/tadruj/s3upload-coffee-javascript並且它調用未定義的對象XMLHttpRequest()的方法overrideMimeType。我想知道是否可以在不覆蓋缺省XMLHttpRequest類的情況下使用django-dajaxice,或者我們是否完全不使用django-dajaxice?我覺得很奇怪,JavaScript插件會覆蓋默認對象,如XMLHttpRequest。django-dajaxice覆蓋XMLHttpRequest

回答