Quantcast
Viewing latest article 6
Browse Latest Browse All 6

SeaJS 里版本号和时间戳管理的最佳实践

用 seajs 组织项目,上线后,经常需要更新特定文件或所有文件的时间戳,以清空浏览器缓存。最简单的方式是: 1 2 3 define(function(require, exports) {   var a = require('path/to/a.js?20110801'); }); 这种方式很简单直观,弊端也很明显:文件一多,时间戳会分散在各个文件,维护起来不...[阅读全文]

关键字: jquery, SeaJS, 前端, 精品收录

Viewing latest article 6
Browse Latest Browse All 6

Trending Articles