UrlApi.js 336 B

12345678910111213141516171819
  1. if(typeof(plugin) == 'undefined'){
  2. var plugin = {};
  3. }
  4. plugin.urlApi = {};
  5. /**
  6. * 获取API的地址
  7. * @param
  8. */
  9. plugin.urlApi.getApiUrl = function (){
  10. console.log('获取API的URL');
  11. if(typeof(URL_API) == 'undefined'){
  12. console.log('设备不支持获取URL_API功能。');
  13. }else{
  14. return URL_API.getApiUrl();
  15. }
  16. };