1 | function restSubmit(modulename, method, data, error, success) { |
||
2 | var url = '/origini-app/visitor/' + modulename + '/php/index.php'; |
||
3 | |||
4 | // var Newsletter = new Rest(url, '?', function (data) { |
||
5 | // console.error(data); |
||
6 | // }, function (data) { |
||
7 | // console.table(data); |
||
8 | // }); |
||
9 | var RestHandle = new Rest(url, '?', error, success); |
||
10 | |||
11 | console.log(this); |
||
0 ignored issues
–
show
Debugging Code
introduced
by
![]() |
|||
12 | |||
13 | delete data.method; |
||
14 | delete data.submit; |
||
15 | |||
16 | console.log(method); |
||
17 | |||
18 | RestHandle.byMethod(method, data); |
||
19 | console.log(data); |
||
20 | } |
||
21 | |||
22 | // restSubmit('auth','GET',{'id': 1,' name':'tom'}); |
||
23 | // restSubmit('auth','PUT',{'id': 1,' name':'tom'}); |
||
0 ignored issues
–
show
|