单独js文件中el不能获取,通过以下方式获取
1
var location = (window.location+'').split('/'); 2 var basePath = location[0]+'//'+location[2]+'/'+location[3]; 3 var url = basePath + '/js/xxx.js';

 

相关文章:

  • 2022-12-23
  • 2021-12-27
  • 2021-08-20
  • 2021-10-22
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2021-05-25
相关资源
相似解决方案