0
我想在changePage中指定contentType,但它不工作。這是我試過的:在changePage中爲jQuery Mobile指定內容類型?
$.mobile.changePage('/Detail', {
type: 'POST',
contentType: 'application/json',
cache: false,
data: JSON.stringify({
item: marker.item
})
});
這可能嗎?我認爲它會覆蓋常規的jQuery ajax,但似乎並不如此。
修正了錯字,但仍然無法正常工作。 – TruMan1 2012-08-13 15:15:05
如前所述,「...它仍然不會按照您的預期工作,因爲contentType選項不在$ .mobile.changePage()方法中使用,請檢查http://jquerymobile.com/test/docs/api/methods。有效選項的html。「 – 2012-08-13 15:16:39