作者newversion (海纳百川)
看板Web_Design
标题[问题] 一个专案里面,夹杂了不同版本的jquery !
时间Sat Jan 7 03:14:03 2017
小弟最近接手一个php专案,感觉架构颇乱!!
其中一项 jquery , Serach 结果:
./css/jquery.ui.all.css
./js/jquery-1.8.2.min.js
./js/jquery-ui.custom.js
./js/jquery.form.js
./js/jquery.query.js
./assets/css/less/thirdparty-jquery-ui.less
./assets/js/chosen.jquery.min.js
./assets/js/jquery.pwstrength.js
./components/jquery/dist/jquery.js
./components/jquery/dist/jquery.min.js
./components/jquery/dist/jquery.slim.js
./components/jquery/dist/jquery.slim.min.js
./components/jquery/src/jquery.js
./components/jquery.1x/dist/jquery.js
./components/jquery.1x/dist/jquery.min.js
./components/jquery.1x/dist/jquery.slim.js
./components/jquery.1x/dist/jquery.slim.min.js
./components/jquery.1x/src/jquery.js
./components/_mod/bootstrap-duallistbox/jquery.bootstrap-duallistbox.js
./components/_mod/bootstrap-duallistbox/jquery.bootstrap-duallistbox.min.js
./components/_mod/datatables/jquery.dataTables.bootstrap.js
./components/_mod/datatables/jquery.dataTables.bootstrap.min.js
./components/_mod/easypiechart/jquery.easypiechart.js
./components/_mod/easypiechart/jquery.easypiechart.min.js
./components/_mod/jquery-ui/jquery-ui.css
./components/_mod/jquery-ui/jquery-ui.min.css
./components/_mod/jquery-ui.custom/jquery-ui.custom.css
./components/_mod/jquery-ui.custom/jquery-ui.custom.js
./components/_mod/jquery-ui.custom/jquery-ui.custom.min.css
./components/_mod/jquery-ui.custom/jquery-ui.custom.min.js
./components/_mod/jquery.mobile.custom/jquery.mobile.custom.js
./components/_mod/jquery.mobile.custom/jquery.mobile.custom.min.js
./components/_mod/jquery.nestable/jquery.nestable.js
./components/_mod/jquery.nestable/jquery.nestable.min.js
./system/libraries/javascript/Jquery.php
里面版本有: 1.8.2, 2.2.1, v3.0.0-beta1, v1.12.1, ....
到底是什麽原因造成这麽乱 Orz
我想把它整合只留最新版本,请问这样会有相容性问题吗? 囧..
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 1.171.249.35
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Web_Design/M.1483730045.A.EC0.html
1F:推 mchen11: 不要接 你会哭的 01/07 07:56
2F:推 pm2001: 很大的机率会 01/07 09:43
3F:→ xdraculax: 不变应万变 01/07 10:36
4F:推 tigon6260: 这是历史文件吧,能学到历史喔! 01/07 13:52
5F:推 ji394snoopy: 一次更新会很刺激 01/07 14:09
6F:推 shadowjohn: 噗,为啥jquery有php版的XD 01/07 14:46
7F:→ MangoTW: 理论上 1.x 与 3 能各自更新,但要先确定没有神人擅改过 01/07 14:48
8F:推 vi000246: 你再弄一个新的进去 你写的程式都引用这个新的 01/07 15:42
9F:推 GoalBased: 因为以前那个人故意要搞你 01/07 18:25
10F:→ jmlntw: 可以想像其他的程式码可能也是… 你多保重… 01/07 19:41
※ 编辑: newversion (1.171.248.101), 01/07/2017 19:49:25
11F:推 Neisseria: 感觉光是 refactoring 就会弄很久的样子 @@~ 01/07 22:00
12F:推 shadowjohn: 个人的经验最稳的是1.8.3先留这个版本再看有没有问题 01/07 23:14
13F:→ shadowjohn: 不过通常还是可以用新版的,加个 migrate 会安心些 01/07 23:15
14F:→ shadowjohn: 通常我是判断IE用1.8.3,其他的就1.11以後+migrate 01/07 23:16
15F:推 farlandx: 肯定冲突、真心不骗 01/11 16:06
16F:推 biobluesheep: 这什麽鬼东西 01/15 15:58
17F:推 secondDim: 那个Jquery.php该不会是webshell吧... 01/18 08:32
18F:→ reedchen: 如果是不同版本 01/24 15:20
19F:→ reedchen: jQ会很冲不是吗 01/24 15:20
20F:推 yulymoon: 海纳百川 GO 01/24 16:03
21F:→ sexyoung: 可以用 bower 来管理你的套件,并且他会帮你检查相容性 02/12 18:56
22F:→ sexyoung: 喔 02/12 18:56