api.js 425 B

12345678910111213141516171819202122
  1. // function postHttps (api,data,mode='post') {
  2. // return service[mode](api,data)
  3. // }
  4. // function getHttps (api,data,mode='get') {
  5. // return service[mode](api,data)
  6. // }
  7. function postHttps(api, data, mode) {
  8. if (mode === void 0) {
  9. mode = 'post';
  10. }
  11. return service[mode](api, data);
  12. }
  13. function getHttps(api, data, mode) {
  14. if (mode === void 0) {
  15. mode = 'get';
  16. }
  17. return service[mode](api, data);
  18. }