app.directive('XXXXXX', function(){
return {
templateUrl: location.protocol+ '//'
+ window.location.host
+ window.location.pathname
+ 'js/XXX/XXXXXX.html',
just Example.
因為換了一台主機發現 website 目錄被動過再深入一層 folder,結果寫死的 url 就會有問題,只好那種方式來判斷,拿到一定ok 的 Template Url。
沒有留言:
張貼留言
若你看的文章,時間太久遠的問題就別問了,因為我應該也忘了... XD