H5页面 Camila Waz 2022-11-21 21:45:44
9
this.$once('hook:beforeDestroy', () => {
   clearInterval(timer);
})
H5页面 Camila Waz 2022-09-12 08:01:18
593访问人次
Camila Waz 2022-03-15 15:13:54
H5页面 Camila Waz 2020-12-16 10:17:07
95
vue特定页面中需jQuery时页面引用方式
  • 1、npm install jquery
  • 2、在页面中import $ from "jquery"
<template>
  <div id="jquery">jquery</div>
</template>

<script>
import $ from "jquery";
export default {
  created(){
    $(function(){
      console.log($("#jquery").html())
    })
  },  
}
</script>
jQuery插件 H5页面 Camila Waz 2020-11-04 15:42:30