宋德武
大自然的搬运工!
展开
-
vue获取当前事件的dom元素 var thisDom = e.currentTarget;
在vue里面,经常用到click,如何获取执行click事件的当前dom对象呢?事件 playvideo:function(e,src){ ////vue获取当前事件的dom元素 var thisDom = e.currentTarget; }原创 2018-01-26 09:52:21 · 9531 阅读 · 0 评论 -
apicloud vue点击延迟解决
<img src="../../../image/common/bg-white.png" :data-echo="realImgDomain+item.snsGameNewLogo" onerror="this.src='../../../image/common/bg-white.png';this.onerror=null" :onclick="'vm.showContent('+it...原创 2018-03-10 15:02:53 · 2834 阅读 · 1 评论 -
vue nuxt.js swiper实现轮播图 处理windows is not definded
nuxt.config.js plugins: [ '@/plugins/element-ui', '@/plugins/swiper' ],plugins/swiper.jsimport Vue from 'vue'//import VueAwesomeSwiper from 'vue-awesome-swiper'// require stylesimpor...原创 2018-11-26 16:31:10 · 217 阅读 · 0 评论 -
nuxtjs asyncData 里面实现多请求
let [listA, listB,listC] = await Promise.all([ app.$axios.$post("plat/test-hall/test-hall-page"), app.$axios.$post("plat/community/detail"), app.$axi...原创 2018-12-11 23:31:27 · 7639 阅读 · 0 评论 -
vue中使用swiper
npm install vue-awesome-swipernuxt.config.js plugins: [ '@/plugins/swiper', {src:'~/plugins/swiper.js',ssr:false}, ],//-------------------------------------------------plugin/swiper.j...原创 2019-01-02 17:22:55 · 783 阅读 · 0 评论 -
nuxt.js swiper用法
//-------------------------------------------------nuxt.config.jsnpm install vue-awesome-swiper plugins: [ '@/plugins/swiper', {src:'~/plugins/swiper.js',ssr:false}, ],//---------------...原创 2019-01-02 17:40:41 · 5233 阅读 · 0 评论