0
我想與AngularJS代碼創建WAR包:結構AngularJS代碼到WAR包
我從資源目錄中輸入的.js文件是這樣的:
<script src="resources/vendor/es6-shim/es6-shim.js"></script>
但我不知道如何我可以從Javascript代碼導入.js文件:
<script>
System.import('resources/system-config.js').then(function() {
System.import('main');
}).catch(console.error.bind(console));
</script>
我該如何解決這個問題?
它不工作。我得到ReferenceError:系統沒有定義 \t System.import('public/system-config.js')。then(function(){ –