chenyue 6 rokov pred
rodič
commit
71f7196f0f
1 zmenil súbory, kde vykonal 21 pridanie a 0 odobranie
  1. 21 0
      js/post.js

+ 21 - 0
js/post.js

@ -0,0 +1,21 @@
(function() {
	var version = "1.0"
	headjs([
		"../../../js/vue.js",
		"../../../js/jquery/2.1.3/jquery.js",
		"../../../js/bootstrap.min.js",
		"../../../js/underscore.js",
		"../../../api/common_http.js",
		"../../../api/common-api.js",
		"../../../js/es6-promise.js",
		"../../../js/app.js",
	])
	
	function headjs(srcipts) {
		var arr = [];
		for(var i=0,len=srcipts.length; i<len; i++) {
			arr.push('<script src="'+srcipts[i]+'?v='+version+'"></script>')
		}
		document.write(arr.join(''))
	}
})()