📜  将 jquery 添加到 vuepress - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:26.748000             🧑  作者: Mango

代码示例1
export default ({ isServer }) => {
  if (!isServer) {
    // Register jQuery
    window.$ = window.jQuery = require('jquery')
    // Register your jQuery plugin
    require('owl.carousel')
    require('owl.carousel/dist/assets/owl.carousel.min.css')
    require('owl.carousel/dist/assets/owl.theme.default.min.css')
  }
}