We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
beez.manager.modelから、Backbone.syncを使わずに直接jQuery/ZeptoでAjax通信することが可能です。
beez.manager.model
$.ajax#get を直接実行します。
$.ajax#get
m.$get({ url: '/ping', beforeSend: function (xhr, settings) {}, success: function (data, status, xhr) {}, error: function (xhr, type, error) {}, complete: function (xhr, status) {} });
他に$post, $put, $delete, $patchも用意されています。
$post
$put
$delete
$patch
urlの先頭にhttp:// or https:// がない場合は、beez.config.url.api に設定された値を自動で追加します。
http://
https://
beez.config.url.api
Backbone.sync#emulateHTTP/emulateJSON ... といった機能も合わせて実装されています。
Backbone.sync#emulateHTTP/emulateJSON
Backbone.$を直接利用しています。jQuery.ajax , zepto.ajax を合わせて参照ください。
Backbone.$
There was an error while loading. Please reload this page.