Worklight http adapter questions

后端 未结 5 2159
南方客
南方客 2021-01-14 16:23

2 simple questions :

  1. Do all http requests make thru http adapter do go thru the worklight server first?

  2. If so then does it mean even a http

5条回答
  •  孤独总比滥情好
    2021-01-14 17:19

    Of course You can access it directly without calling any adapter functions using simple jquery ajax calls.

    $.ajax({
           url: url,
           data: data,
           success: success,
           dataType: dataType
    });
    

    or

    $.get(url, function() {
        alert( "success" );
    })
    .done(function() {
        alert( "second success" );
    })
    .fail(function() {
        alert( "error" );
    })
    .always(function() {
       alert( "finished" );
    });
    

提交回复
热议问题