Cómo hacer que la interfaz de usuario borre automáticamente el caché de archivos js y css
var?script?=?document.createElement('script')
script.src?=?'/jquery/3.3.1/jquery.min.js?version='?+?(new? Fecha).getTime()
var?stylesheet?=?document.createElement('link')
stylesheet.rel?=?'stylesheet'
stylesheet.href?=?'/bootstrap/4.0.0-beta.3/css/bootstrap.css?version='?+?(new?Date).getTime()
document.head. appendChild(script)
document.head.appendChild(hoja de estilo)
p>
script.onload?=?función(e)?{
alerta(jQuery)
}
Escribí un ejemplo muy simple.