1.首先定制规则,业务代码开发的js我的在app0文件夹下,第三方的js在common文件夹下
2.引入seaJs相关的js文件,实现模块化编程
<script language="javascript">
var cc=seajs;
var version=Math.random();cc.config({//seajs配置声明
map:[
//之前:http://localhost:8080/web/app0/reportYunYingFang/jiesuan/js/queryYueFenRun.js
[/(.*?)app0(.*?)(\.js)$/i,"$1app0$2.js?v="+version]//映射规则
//之后:http://localhost:8080/web/app0/reportYunYingFang/jiesuan/js/queryYueFenRun.js? v=0.31592523934110517
]
]});
</script>