-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathseajs处理js,css文件版本号问题
More file actions
27 lines (27 loc) · 873 Bytes
/
seajs处理js,css文件版本号问题
File metadata and controls
27 lines (27 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<script src="/js/plugin/sea.js"></script>
<script>
seajs.config({
base: "/js/",
alias: {
"jquery": "plugin/jquery.js",
"home": "page/home.js",
"bootstrap": "plugin/bootstrap.min.js",
"mustache": "plugin/mustache.min.js",
"swiper": "plugin/swiper.min.js",
//"tap": "common/tap.js",
"store": "common/store.js",
"paging": "common/paging.js"
},
map: [
[/^(.*\/js\/.*\.(?:css|js))(?:.*)$/i, '$1?v=201601101539']
//map: [[/^(.*\.(?:css|js))(.*)$/i, '$1?v=20131010']]
]
});
seajs.use(['jquery', 'home'], function ($, home) {
$(document).ready(function () {
var homeob = new home();
homeob.init();
homeob.time("<?php echo time(); ?>");
});
});
</script>