@
qilishasha 以前维护过一个这样老的项目,一个 head 里十多个 script 、link,像这样
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.plugin-aaa.min.js"></script>
<script src="../js/jquery.plugin-bbb.min.js"></script>
<script src="../js/jquery.plugin-ccc.min.js"></script>
<script src="../js/jquery.plugin-ddd.min.js"></script>
<script src="../js/jquery.plugin-eee.min.js"></script>
<script src="../js/jquery.plugin-fff.min.js"></script>
<script src="../js/jquery.plugin-ggg.min.js"></script>
<link rel="stylesheet" href="../_assets/css/jquery.plugin-aaa.css">
<link rel="stylesheet" href="../_assets/css/jquery.plugin-bbb.css">
<link rel="stylesheet" href="../_assets/css/jquery.plugin-cdc.css">
<link rel="stylesheet" href="../_assets/css/jquery.plugin-ddd.css">
<link rel="stylesheet" href="../_assets/css/jquery.plugin-eee.css">
<link rel="stylesheet" href="../_assets/css/jquery.plugin-fff.css">
……
后来某些插件有更新或者不需要了,却不敢升级,不敢删除。
谁知道它将来会在哪个你意想不到的地方来一个“undefined is not a function”。