问题
Is there a customizable javascript hook in MDriven Turnkey that gets called on each page load? If not, how do I add such a hook?
回答1:
I think you find the answer here: MDriven wiki
回答2:
It's AngularJS. Look at AngularJS to find out how you run JS when page loads.
https://docs.angularjs.org/api/ngRoute/directive/ngView#event-$viewContentLoaded
https://azizsaboor.wordpress.com/2015/11/26/angularjs-event-to-call-after-loading/
来源:https://stackoverflow.com/questions/61774890/is-there-a-page-load-hook-in-mdriven-turnkey