post.js 582 B

123456789101112131415161718192021222324
  1. (function() {
  2. var version = "1.0"
  3. headjs([
  4. "../js/vue.js",
  5. "../js/jquery.min.js?v=2.1.4",
  6. "../js/plugins/toastr/toastr.min.js",
  7. "../js/plugins/layer/layer.min.js",
  8. "../component/common/event-bus.js",
  9. "../component/common/nodata.js",
  10. "../js/element.js",
  11. "../js/es6-promise.js",
  12. "../js/api/http-request.js",
  13. "../js/util.js",
  14. ])
  15. function headjs(srcipts) {
  16. var arr = [];
  17. for(var i=0,len=srcipts.length; i<len; i++) {
  18. arr.push('<script src="'+srcipts[i].replace('../','../../../')+'?v='+version+'"></script>')
  19. }
  20. document.write(arr.join(''))
  21. }
  22. })()