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

鍍金池/ 問答/ HTML問答
撥弦 回答
computed:{
    sum(){
        return parseFloat(this.form.add1) + parseFloat(this.form.add2) 
    }
}
v-model = 'sum'

發(fā)送數(shù)據(jù)的時(shí)候把sum加上去

r1

           <el-form-item label="實(shí)收總金額">
             <el-input placeholder="實(shí)收總金額"  v-model="form.sum"></el-input>
           </el-form-item>
    <el-form-item label="活動(dòng)性質(zhì)">
      <el-checkbox-group v-model="form.type"
                         :max="5">
        <el-checkbox v-for="(item,index) in arr"
                     :label="item.name"
                     :key="item.id"
                     name="type"
                     @change="fun(index)">
          <div class="displayInput"
               v-if="item.change">{{item.name}}
            <span class="wrap">
              <el-input placeholder="應(yīng)收金額" v-model="form.add1"></el-input>
              <el-input placeholder="實(shí)收金額" v-model="form.add2"></el-input>
            </span>
          </div>
        </el-checkbox>
      </el-checkbox-group>
      // js data里 把form放到arr里面 
      arr:[{name:'s',form:{add1:null,add2:null}}]
      computed:{
        sum(){
            return this.arr..map(v => parseFloat(v.form.add1) + parseFloat(v.form.add2)).reduce((a, b) => a + b)
        }
    }
    // 發(fā)送數(shù)據(jù)就要你自己組織了
悶騷型 回答

navigator.onLine 可以判斷網(wǎng)絡(luò)連接狀態(tài)

有你在 回答

怎么實(shí)現(xiàn)占位傳值呢 就是文本某個(gè)位置字符需要?jiǎng)討B(tài)改變 比如:
message: {

  hello: '你好'{0}
}

就是可以實(shí)現(xiàn) 你好lucy \你好Rosi 這樣的
何蘇葉 回答

es6中的exportimport相關(guān)的ES6學(xué)習(xí)——模塊化:import和export;
應(yīng)該是getters,actions,mutations中export了多個(gè)模塊,import的時(shí)候也要分開引入import {a, b} from xxx,或者import * as a from xxx

瘋子范 回答

match得到的是個(gè)數(shù)組所以報(bào)錯(cuò)而且正則應(yīng)該是/^[0-9]d$|(^[0-9]+.[0-9]{0,8})/,watch檢測(cè)數(shù)據(jù)是沒問題的。用computed反而會(huì)麻煩一些

初念 回答

一種方案就是你在最外層,定義一個(gè)變量,let data = {};

// 回調(diào)里賦值
data.date = value;

然后把這個(gè)data 傳給后端即可呀。

笑浮塵 回答

HTML代碼:

<div class="ct">
  <div class="left">left</div>
  <div class="right">right</div>
   <div class="main">main</div>
</div>

CSS代碼:

.left,
.right {
  width: 100px;
  height: 100px;
}
.left {
  background: blue;
  float: left;
}
.right {
  background: green;
  float: right;
}
.main {
  background: red;
  height: 100px;
  margin: 0 100px;
}

逗婦惱 回答

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

久礙你 回答

前段靜態(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');
     };

神曲 回答

寫一個(gè)自定義的輸入框,但是不要用input,實(shí)現(xiàn)的效果和input一樣,然后自定義一個(gè)動(dòng)畫光標(biāo)效果不就行了,點(diǎn)擊某個(gè)地方,自定義的鍵盤出現(xiàn)

艷骨 回答

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

嫑吢丕 回答

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

壞脾滊 回答

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

朕略萌 回答

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

慢半拍 回答

ngAfterViewChecked這個(gè)hook每次在檢測(cè)組件內(nèi)部自己的視圖(view)和子組件的視圖時(shí)都會(huì)調(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.

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

獨(dú)白 回答

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

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

VM橋接網(wǎng)卡,獲取與局域網(wǎng)同網(wǎng)段的IP,不就可以了?