12345678910111213141516171819202122 |
- // function postHttps (api,data,mode='post') {
- // return service[mode](api,data)
- // }
- // function getHttps (api,data,mode='get') {
- // return service[mode](api,data)
- // }
- function postHttps(api, data, mode) {
- if (mode === void 0) {
- mode = 'post';
- }
- return service[mode](api, data);
- }
- function getHttps(api, data, mode) {
- if (mode === void 0) {
- mode = 'get';
- }
- return service[mode](api, data);
- }
|