Commit e3cf9f0e authored by xishifeng's avatar xishifeng

商铺详情加版本号

parent 2cff0c5c
......@@ -44,7 +44,7 @@ require.config({
}
}
});
require(['css!style/common.css', document.querySelector('[data-main="/app/js/main"]').getAttribute('data-js')], function() {
require(['css!style/common.css', document.querySelector('[data-main="/app/js/main"]').getAttribute('data-js')+'?timeversion='+new Date().getTime()], function() {
if(document.querySelector('[data-main="/app/js/main"]').getAttribute('data-norem') !== 'yes') {
/*! 动态计算屏幕的宽度,从而得到网页的fontSize大小 */
document.documentElement.style.fontSize=100*(document.documentElement.clientWidth/750)+'px';//在require中似乎无法响应DOMContentLoaded事件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment