我正在開發一個使用Vue2,VueRouter和Laravel 5.4的項目。這是一個單頁面應用程序。用於API認證的Laravel Passport(來自我的Vue組件的AXIOS調用)。 大多數應用程序從一個刀片文件(像這樣)服務: <?php
//styling and the like
//...
//components being loaded here
<router-vie
對於單頁的應用程序,我想知道是否有可能要求新的廣告,以取代現有的廣告在一個div容器 var slotName = '/blogs/peter/recentPosts' // this changes according to route
var adContainer = 'div-common-container' // this never changes
window.googleta