jsDelivr(支持 combine)
`https://cdn.jsdelivr.net/npm/:package@:version/:file`
# https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
unpkg
`https://unpkg.com/:package@:version/:file`
# https://unpkg.com/[email protected]/dist/jquery.min.js
饿了么
`https://npm.elemecdn.com/:package@:version/:file`
# https://npm.elemecdn.com/[email protected]/dist/jquery.min.js
知乎
`https://unpkg.zhimg.com/:package@:version/:file`
# https://unpkg.zhimg.com/[email protected]/dist/jquery.min.js
百度
`https://code.bdstatic.com/npm/:package@:version/:file`
# https://code.bdstatic.com/npm/[email protected]/dist/jquery.min.js
jsDelivr国内可能部分网络有问题, 但仅jsDelivr才支持combine(多个文件合并).
使用CDN引入, 可以独立公共资源, 省去webpack打包. 当然, 也有人用来做图床.