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

鍍金池/ 問(wèn)答/ HTML問(wèn)答
爆扎 回答
  this.$route.matched //歷史堆

clipboard.png

雅痞 回答

1個(gè)swiper-slide也是可以滑動(dòng)的。此處的關(guān)鍵在于。內(nèi)容是通過(guò)接口獲取到的,swiper沒(méi)有預(yù)先預(yù)留高度,沒(méi)有高度自然無(wú)法滑動(dòng)。此處解決辦法有兩種。
一、
swiper有個(gè)update()方法,等內(nèi)容更新完畢再計(jì)算寬高,可以實(shí)現(xiàn)。(此處要用到Angular里面子組件調(diào)用父組件的方法。)如圖:
clipboard.png

clipboard.png
二、
Angular里面可以直接這樣寫(xiě),就不需要swiper調(diào)用update()了。

clipboard.png
值得注意的是,此處div要先定義樣式。

clipboard.png

吢丕 回答

Function.prototype.bind: 給某個(gè)對(duì)象,假如為obj綁定一個(gè)上下文
bind.bind(bind.apply):相當(dāng)于得到了apply.bind
bind.apply([].concat):apply需要一個(gè)上下文,也就是這里的[].concat,得到[].concat.apply
concat(b, a):相當(dāng)于是a.concat(b)

短嘆 回答

直接拿每個(gè)series的data去排序不就好了嗎?

在 mouseleave 時(shí)手動(dòng) dispatch 一個(gè) mouseup 到 canvas 元素即可

var mouseEvent= document.createEvent('MouseEvents');
mouseEvent.initEvent('mouseup', true, true);
echartsCanvasEle.dispatchEvent(mouseEvent);
巫婆 回答

已解決:
出現(xiàn)上面問(wèn)題的原因是沒(méi)有弄懂ts類(lèi)型聲明文件的作用。
如果要在ts文件里引入第三方的js庫(kù)(比如Jquery或者自己寫(xiě)的js模塊),那么該js沒(méi)有類(lèi)型約束,怎么辦?這時(shí)候就可以引入該文件的.d.ts,然后typescript就會(huì)根據(jù)這個(gè)類(lèi)型申明文件對(duì)該js進(jìn)行類(lèi)型驗(yàn)證。
下面引用一下stackoverflow的一段話:
The "d.ts" file is used to provide typescript type information about an API that's written in JavaScript. The idea is that you're using something like jQuery or underscore, an existing javascript library. You want to consume those from your typescript code.

Rather than rewriting jquery or underscore or whatever in typescript, you can instead write the d.ts file, which contains only the type annotations. Then from your typescript code you get the typescript benefits of static type checking while still using a pure JS library.

renameInput 是jq對(duì)象,不是dom對(duì)象,需要轉(zhuǎn)化下

renameInput[0].focus();

疚幼 回答

我升級(jí)后Drawer組件里面出問(wèn)題,通過(guò)open的true和false可以隱藏但無(wú)法從隱藏轉(zhuǎn)到顯示狀態(tài),你的會(huì)有這個(gè)問(wèn)題嗎?

胭脂淚 回答

android好像不支持這個(gè)屬性吧?

怪痞 回答

主要不要用JS去處理。我只用css處理rem大小的。沒(méi)啥問(wèn)題

將數(shù)據(jù)定義在一個(gè)numbers數(shù)組中,用for循環(huán)渲染button,下面是html部分:

  <div id="div1">
    <button v-for="(item, index) in numbers" @click="count(item.id)" >{{ item.num }}</button>
  </div>

當(dāng)點(diǎn)擊該button時(shí),傳入當(dāng)前對(duì)象id,通過(guò)遍歷找到當(dāng)前對(duì)象,將其對(duì)象num加1,下面是js部分:

new Vue({
      el: '#div1',
      data: {
        numbers: [
          {id: 1, num: 0},
          {id: 2, num: 0},
          {id: 3, num: 0}
        ]
      },
      methods: {
        count (id) {
          this.numbers.map(item => {
            if (item.id === id) {
              item.num++
            }
          })
        }
      }
    })
久礙你 回答

<!DOCTYPE html>
<html lang="en">

<style>
    body {
        margin: 0;
        padding: 0;
    }
    
    a {
        text-decoration: none;
    }
    
    .top_1 {
        
        width: 100%;
        height: 50px;
        background: lightgreen;
        float: right;
        overflow: hidden;
    }
    .right{
        float: right;
    }
</style>

<head>

    <meta charset="UTF-8">
    <title>Title</title>
    <link href="../css/base.css" rel='stylesheet' type='text/css' />
</head>

<body>
    
        <div class="top_1">
            <div class="right">
                用戶名:<input type="text"> 密碼: <input type="password">
                <a href="#">登錄</a>
                <a href="#">注冊(cè)</a>
            </div>
        </div>
    
    <div style="clear:both"></div>
</body>

</html>

忘了我 回答

你用的webpack打包嗎?

試試external?

module.exports = {
  //...
  externals: {
    React: 'react'
  }
};

詳細(xì)用法請(qǐng)參考: https://webpack.js.org/config...

this.$el.addEventListener('keydown', this.handelKeydown) 有監(jiān)聽(tīng)事件

話寡 回答

這個(gè)應(yīng)該是 項(xiàng)目打包之后 有什么方法不兼容,你可以注意下 和' forecast' 相關(guān)的代碼部分,根據(jù)目前的信息 只能判斷這么多

毀憶 回答

然而我卻不知道事件會(huì)在兄弟元素間冒泡~

小曖昧 回答

把選項(xiàng)卡配置成數(shù)組,然后里面設(shè)置一些配置,動(dòng)態(tài)組件傳入對(duì)應(yīng)的配置。

[
    {
         tabName:'選項(xiàng)卡一',
         options:{
             apiFunc:apiFunc1
             //...
         }
    },
    {
         tabName:'選項(xiàng)卡二',
         options:{
             apiFunc:apiFunc2
             //...
         } 
    }
]
<component :is="currentTab.tabName" :config="currentTab.options" />
兔寶寶 回答

你的要求是不是這樣的:文字盒子的width是圖片盒子的兩倍,而且要置于其上?
是的話需要更改之前的布局。
就像你說(shuō)的,將li設(shè)置為relative,那么處于里面的文字盒子會(huì)被后面的元素遮擋。
所以可以將一個(gè)li作為一整排,即直接容納之前三個(gè)li的元素,并設(shè)置為relative

<ul>
  <li>
    <div>
      <div class="img-box"></div>
      <div class="info-box"></div>
    </div>
    <div>
      <div class="img-box"></div>
      <div class="info-box"></div>
    </div>
    <div>
      <div class="img-box"></div>
      <div class="info-box last"></div>
    </div>
  </li>
</ul>
樣式僅僅羅列出某些重點(diǎn),實(shí)際使用需要自行修改。
<style>
  li {
    position: relative;
    width: 600px;
    height: 200px;
  }
  li>* {
    display: inline-block;
  }
  li .img-box {
    width: 200px;
    height: 200px;
    background: #eee;
  }
  li .info-box {
    position: absolute;
    top: 0;
    width: 400px;
  }
  li .info-box.last {
    right: 0;
  }
</style>
尐潴豬 回答

改成

export default {
    name: 'app',
    data() {
       return {}
    }
}

或者

export default {
    name: 'app'
}