前端开发过程中 解决 css ,js 缓存问题
CSS
<script> document.write('<link rel="stylesheet" href="__CDN__/yanchu/css/styles.css?v=' + new Date().getTime() + '" />') </script>
JS
<script> document.write('<script src="__CDN__/yanchu/js/api.js?v=' + new Date().getTime() + '"><' + '/script>'); </script>