angularjs加载不同的路由模板,但是它总是使用缓存,重新加载页面都没用。如何才能禁止路由机制使用缓存?
之前有人提到解决办法是:
when('/data', {
templateUrl: 'partial/customer_ask.html?t=' + Math.floor(Date.now() / 1000),
controller: 'dataController'
})
我试了一下结果报错,404 template not found
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
要不试试用ui-router取代router吧
or