在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答
逗婦惱 回答

應該還有代碼吧?
categoryData: null, //商品分類數(shù)據(jù)
cartProductData: null, //加入的購物車數(shù)據(jù) 看你寫的 這兩個就是保存在vuex中全局的data,
如果不是 async await請求數(shù)據(jù)放在組件里也可以

心癌 回答

then(res => { this.xxx = xxxx })

嫑吢丕 回答

原來是v-for惹的貨,也就是說你一個頁面上同時有好幾個swiper,那么根據(jù)循環(huán)的index給不同的ref,重新初始化就好了.
vue-awesome-swiper
clipboard.png
你還是改改用法吧
組件內(nèi)

<template>
  <swiper :options="swiperOption">
    <swiper-slide v-for="slide in swiperSlides">I'm Slide {{ slide }}</swiper-slide>
    <div class="swiper-pagination" slot="pagination"></div>
  </swiper>
</template>
 
<script>
import { swiper, swiperSlide } from 'vue-awesome-swiper'
 
  export default {
      components: {
        swiper,
        swiperSlide
      }
    },
    name: 'carrousel',
    data() {
      return {
        swiperOption: {
          pagination: {
            el: '.swiper-pagination'
          }
        },
        swiperSlides: [1, 2, 3, 4, 5]
      }
    },
  }
</script>
<template>
  <div class="content clearfix">
    <div class="leftBar leftHelpBar">
      <ul class="leftHelp_tab clearfix">
        <li v-for="(item, tabIndex) in items" :class="{onCur: iscur == tabIndex}" @click="setCur(tabIndex)" :key="tabIndex">{{ item.name }}</li>
      </ul>
       <ul class="help_list" v-for="(item, i) in items" :key="i" v-show="iscur == i">
        <li v-for="(item, index) in item.dataList" :key="index">
          <h3>{{ item.title }}</h3>
          <span v-for="(item, subIndex) in item.content"
                :key="subIndex"
                :class="{curStyle: `${i},${index},${subIndex}`== getcur}"
                @click="postCur(`${i},${index},${subIndex}`)">
            {{ item.subTit }}
          </span>
        </li>
      </ul>
    </div>
    <div class="rightBar">
      <div v-for="(item, i) in items" :key="i" class="help-img-con">
        <div v-for="(item, index) in item.dataList" :key="index">
          <div v-for="(item, subIndex) in item.content"
               :key="subIndex"
               v-show="`${i},${index},${subIndex}`== getcur"
               v-swiper:mySwiper="swiperOption"
               :ref=" `mySwiper${subIndex}` " <======= change here
               :options="swiperOption">
            <ul class="swiper-wrapper">
              <li v-for="(item, k) in item.img" :key="k" class="help-img-list swiper-slide">
                <img :src="item.imgsrc" alt="" />
              </li>
            </ul>
            <div class="swiper-button-next" slot="button-next"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import axios from 'axios'
export default {
  data () {
    return {
      iscur: 0,
      getcur: '0,0,0',
      swiperOption: {},
      items: []
    }
  },
    created(){
    axios.get('static/data/leftHelpBase.json')
      .then((res) => {
        console.log(res)
        this.items = res.data.dataInfo
      })
      .catch((err) => {
        console.log(err)
      })},
  mounted: function () {
  },
  methods: {
    setCur: function (index) {
      this.iscur = index
      this.getcur = index + ',0,0'
    },
    postCur: function (index) {
      this.getcur = index
    }
  },
  computed: {
    swiper () {
      return this.$refs.mySwiper.swiper
    }
  }
}
</script>

得,傳送門 https://segmentfault.com/q/10...

艷骨 回答

沒有用過這個插件,不過你可以參照:https://blog.csdn.net/wgp1573...
我看你的全局變量聲明是不是位置不對?
然后就是你有好好的引入嗎?

慢半拍 回答

ngAfterViewChecked這個hook每次在檢測組件內(nèi)部自己的視圖(view)和子組件的視圖時都會調(diào)用,頻率很高的。官網(wǎng)也說明了:

Notice that Angular frequently calls AfterViewChecked(), often when there are no changes of interest. Write lean hook methods to avoid performance problems.

你說的那個庫沒有使用過,不過refresh這種刷新邏輯一般不會頻繁的觸發(fā)吧,那只需要在需要觸發(fā)的時候收到調(diào)用就可以了呀,沒有必要寫到ngAfterViewChecked 生命周期函數(shù)中吧

巫婆 回答

就是內(nèi)存不足,加大內(nèi)存。還有一個方法,先把上傳的圖片縮小再去識別

愚念 回答

謝邀.

不管對象里面有沒有子對象,你可以采用下面的方法搞定

//將對象序列化,然后轉(zhuǎn)換為數(shù)組
$arr=json_decode(json_encode($obj),true);

通過數(shù)組方式你很容易訪問對象中的元素。

參考 php對象轉(zhuǎn)數(shù)組的黑技術
何蘇葉 回答

es6中的exportimport相關的ES6學習——模塊化:import和export;
應該是getters,actions,mutations中export了多個模塊,import的時候也要分開引入import {a, b} from xxx,或者import * as a from xxx

壞脾滊 回答

用了vue為啥還這么干呢
@click="f(r)"這樣調(diào)用吧,函數(shù)f里面再去調(diào)用你的window下的函數(shù)吧

不歸路 回答

最后得到的單鏈表是不是如圖所示:——是

所以是不是其實最后還有一個尾結點,這個結點為nullptr,但是如果統(tǒng)計結點的時候其實它也是一個結點的存在?——這里有個兩個問題,前半部分,后面沒有尾節(jié)點了,那個nullptr是保存數(shù)字5的那個節(jié)點的next指針的值。指針指向內(nèi)存地址,如果指向nullptr的話,表明不對應任何內(nèi)存地址,所以不存在這個尾節(jié)點。統(tǒng)計節(jié)點的時候,這個節(jié)點也不存在,不能統(tǒng)計進去。

我傳入的L是不是之前創(chuàng)建的鏈表的頭結點(就是沒有存儲data,next指針指向第一個真正存儲data的那一個結點)?——算是對的,但是更嚴格的講,L是指向你創(chuàng)建的鏈表的頭節(jié)點的指針,它指向你創(chuàng)建的頭節(jié)點。

朕略萌 回答

看你有個anguler的標簽,如果你的fs的邏輯是寫在業(yè)務代碼(跑在純?yōu)g覽器)里的那就用不了。

艷骨 回答

multipart/form-data是標準的上傳協(xié)議,跟什么語言的服務器無關的。
curl命令行是用--form這個參數(shù)來指定上傳文件的,你查一下php的curl選項,應該有對應的東西。不需要自己手動設定Content-Type和Content-Length頭的。

久礙你 回答

前段靜態(tài)引入是沒問題的

<script src="https://cdn.jsdelivr.net/npm/sockjs-client@1/dist/sockjs.min.js"></script>
    var sock = new SockJS('https://mydomain.com/my_prefix');
     sock.onopen = function() {
         console.log('open');
         sock.send('test');
     };

獨白 回答

jquery fileupload插件 上傳一張圖片和張圖片是一樣的
<input id="upfile" data-url="后臺提交地址" type="file" name="接口需要名稱" value="">
multiple form表單添加屬性
js注冊事件 單文件只執(zhí)行一次下面的事件 多文件執(zhí)行多次回調(diào)

$("表單名稱").fileupload({
    datatype : "json",
    done : function ( e , data ) {
            console.log(data)
    }
});
神曲 回答

寫一個自定義的輸入框,但是不要用input,實現(xiàn)的效果和input一樣,然后自定義一個動畫光標效果不就行了,點擊某個地方,自定義的鍵盤出現(xiàn)

命于你 回答

因為你升級了pip 10.。。。。。。換回9就正常了。。。。親測

還有你設置一下環(huán)境變量應該也可以,目前用的10.0.1,應該就是環(huán)境變量的問題