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

鍍金池/ 問答/ HTML問答
離夢(mèng) 回答

嗝 大哥 error 在table.less 和 main.less 里

舊言 回答

這個(gè)最好不要注冊(cè)成組件或指令, 使用自定義插件然后注冊(cè)實(shí)例方法

Vue.prototype.$alert = {
  open: () => console.log('打開'), 
  close: () => console.log('關(guān)閉')
};

這樣可以讓別人在他的組件內(nèi)部直接調(diào)用你的api

this.$alert.open();

插件只需要在 main.js 引入, 類似 vue-router

毀憶 回答

let contactModal = this.modalCtrl.create(ContactUs);這行是創(chuàng)建一個(gè)彈框?qū)ο?,但是?chuàng)建出來默認(rèn)是不顯示的,所以你要在調(diào)用contactModal.present();讓彈窗顯示出來。
其實(shí)這兩行代碼不一定非要放到一塊的,你可以讓頁面打開的時(shí)候,就創(chuàng)建彈窗,然后點(diǎn)擊按鈕的時(shí)候,再顯示彈窗,具體的使用方法你可以看看 官方的文檔

祈歡 回答

正確的 ignore 文件名應(yīng)該是 .gitignore 而不是 java.gitignore

瞄小懶 回答

不需要用refs獲取dom,給答對(duì)了和打錯(cuò)了設(shè)置不同的類,在渲染的時(shí)候判斷是答對(duì)還是打錯(cuò),來設(shè)置不同的類,也可以直接在html里設(shè)置style

<div  v-for="(list,index) of lists.options" @click="ans(index,lists)" ref="items" class=" H-text-list H-flexbox-horizontal  H-theme-background-color-white H-border-vertical-bottom-after H-vertical-middle H-touch-active" :style="color: ['A','B','C','D'].indexOf(list.an) > -1 ? 'limegreen' : 'red'">
        <div class=" H-flex-item H-padding-horizontal-both-10 H-font-size-16 H-padding-vertical-both-12 H-text-show-row-3" style="line-height: 29px;">
                {{list}}
        </div>
    </div>
不將就 回答

antd的Table組件支持列和行的合并。參考

  1. children是一個(gè)數(shù)組,沒有props屬性
  2. {...this.props}相當(dāng)于是把這個(gè)對(duì)象分割開來,分別以屬性賦值給組件
替身 回答

游泳健身了解一下 啊呸 數(shù)組fill()方法了解一下
http://www.runoob.com/jsref/j...

司令 回答

不用這么麻煩吧,用text-align:right;結(jié)合float:left;就能將解決。

https://jsfiddle.net/9gohn21k/2/

純妹 回答

input 限制數(shù)組,不是在 input里面 type設(shè)置 number 嗎?

或者根據(jù)官網(wǎng)
<input v-model.number="age" type="number">

鏈接:https://cn.vuejs.org/v2/guide...

朕略萌 回答

mvc核心就是雙向數(shù)據(jù)綁定,起到數(shù)據(jù)變(js),聯(lián)動(dòng)視圖變(css),view change =>data change。
模塊化簡(jiǎn)單來說,就是代碼適應(yīng)多個(gè)應(yīng)用場(chǎng)景,起到復(fù)用代碼作用。

涼心人 回答

chunk 你可以理解為分支,只有代碼中有按需加載才會(huì)出現(xiàn)

bundle 其實(shí)就是你最終打出來的主要代碼集合,以你的entry作為入口,打出來的所有代碼

compilation 通過你的webpack配置可以生成,new compilation并將config傳入,這個(gè)compilation對(duì)象用來編譯代碼

乖乖瀦 回答

clipboard.png
這塊寫了第一個(gè)參數(shù)repository該如何填寫,是你寫的第一個(gè)參數(shù)地址不對(duì),才導(dǎo)致的128.文檔是這個(gè)地址也可能是不對(duì)的你用你自己的倉(cāng)庫(kù)地址github:
clipboard.png
第一個(gè)紅框的地址是干擾項(xiàng),不要用那個(gè)地址。download第一個(gè)參數(shù)是github:(第二個(gè)紅框的路徑)
說白了第一個(gè)參數(shù)就是類型[github/gitlab/Bitbucket]:[賬戶名]/[倉(cāng)庫(kù)名]

嫑吢丕 回答

原來是v-for惹的貨,也就是說你一個(gè)頁面上同時(shí)有好幾個(gè)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...

故人嘆 回答

highlight-row是鼠標(biāo)滑到所在的行或單擊改行高亮顯示吧,我是要只要前面的checkbox被選中,不管鼠標(biāo)在不在該行,該行都與其他的行擁有不同顏色的字體(樣式)。

法克魷 回答

for(let i = 0; i < 5; i++){

setTimeout(function(){
    console.log(i)
},i*(i+1)/2*1000)

}

傻叼 回答

把設(shè)置的placeholder去掉了 好了