Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var example_data = {
- 'one': 1
- };
- ajax_request('/example/abc', 'GET', example_data)
- .then(function (response) {
- if (response) {
- if (response.status) {
- return response
- } else {
- return response.message
- }
- }
- })
- .catch(function (err) {
- return err;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement