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

鍍金池/ 問答/ HTML5問答
你好胸 回答

動(dòng)態(tài)component <component :is="type"/>

傻丟丟 回答

<Route strict exact path="/user/details" component={Details} />
把其中的exact去掉試試。
我遇到類似的問題,就是這么解決的。

安淺陌 回答

@-webkit-keyframes goNext是webkit為核心的瀏覽器
一般pc端的寫法都是
@-moz-keyframes
@-o-keyframes
@keyframes
@-webkit-keyframes
個(gè)人都是這樣寫的ie我沒有測(cè)試過你可以試試

舊螢火 回答

已經(jīng)解決,在app.module.ts的imports里面刪除進(jìn)行懶加載的模塊

// 懶加載
{
  path: 'set',
  loadChildren: 'app/setting/setting.module#SettingModule'
},
// app.module.ts
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    FormsModule,
    // 非懶加載模塊
    PopupModule,
    CoreModule,
    PipeModule,
    RoutesModule,
    CashRegisterModule,
    // 懶加載模塊
    // SettingModule
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}

同時(shí),在setting.route.module.ts里面path寫空:

// setting.route.module.t
@NgModule({
  imports:
    [
      RouterModule.forChild([
        {
          // path: 'set',
          path: '',
          component: SettingComponent
        }
      ])
    ],

  exports:
    [
      RouterModule
    ],

  providers:
    []
})
export class SettingRouteModule
{
}

原來(lái)的寫法其實(shí)并沒有實(shí)現(xiàn)懶加載,但是angular4不是出錯(cuò),但是在angular5就會(huì)提示懶加載的錯(cuò)誤

冷咖啡 回答

在v-for 循環(huán)中,會(huì)出現(xiàn) index ,只需要點(diǎn)擊的時(shí)候,把index 、id 傳遞到方法中即可

<ul>
    <li v-for="(item,index) in dataArr" @click="del(index,item.id)" :key="item.id">
        {{item.name}}
    <li/>
</ul>

使用方法接受參數(shù):index 、id

methods:{
   del(index,id){
         console.log(id)//當(dāng)前id
         this.dataArr.splice(index,1); //刪除當(dāng)前行
    }
}

膽怯 回答

更新一下吧,1.19版本已經(jīng)沒有這個(gè)問題了。我另一臺(tái)機(jī)器上的1.16版確實(shí)存在這個(gè)問題。

青裙 回答

選擇縮放時(shí)的起始值和結(jié)尾值,根據(jù)這兩個(gè)值再次查詢數(shù)據(jù)庫(kù)詳細(xì)信息。
獲取這兩個(gè)值,使用開始值:option.dataZoom.start結(jié)束值:option.dataZoom.end,我也在試用中,。。。

用定位要注意定位父級(jí)

<view class='imgbox'>
  <image class='ico' mode='scaleToFill' src='{{ico}}></image>
    <text class="txt">{{text}}</text>
</view>
.imgbox{
  position: relative;
  width: 600rpx;
  height: 400rpx;
}
.ico{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.txt{
   position: relative;
}

臭榴蓮 回答

其實(shí)你可以直接將其display:none隱藏的,用label for id 來(lái)綁定input,點(diǎn)擊label來(lái)控制 radio

input[type="radio"]{
   opacity: 0;
}
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <link rel="stylesheet" type="text/css" href="normalize.css"/>
        <style type="text/css">
           input[type="checkbox"]:checked+label:after{
                  content: '\2714';
                  background-color: #ff5757;
                  color: #FFF;
                  border-color: #ff5757; 
           } 
           input[type="checkbox"]{
               display: none;
           }
           label:after{
               content: '';
               position: absolute;
               left: 0;
               top: 0;
               width: 18px;
               height: 18px;
               border: 1px solid #CCC; 
               box-sizing: border-box;
               line-height: 18px;
               text-align: center;
               border-radius: 3px;
            font-size: 14px;                
               
           }
           label{
               position: relative;
               padding-left: 25px;
               box-sizing: border-box;
               line-height: 20px;
               font-size: 14px;
               height: 20px;
           }
           #top{
               margin: 100px;
           }
           input[type="checkbox"]:checked ~ img{
               transform: translateX(500px);
           }
           #img{
               transition: all 1s; 
           }
        </style>
    </head>
    <body>
    <div id="top">
            <input type="checkbox" id="mycheck"/>
            <label for="mycheck">噓噓噓噓噓</label>
            <img src="2.jpg" id="img" alt="" />
    </div>    
    </body>
</html>
練命 回答

這種事太長(zhǎng)見了~
只要最終能安裝好就可以了。
你可將npm的源指定到cnpm上,這樣應(yīng)該比較快點(diǎn),我們都是這么做的。參考

  1. 保證數(shù)據(jù)庫(kù)穩(wěn)定(連接數(shù)被池上線限制了,數(shù)據(jù)庫(kù)不會(huì)掛)
  2. 盡量保證應(yīng)用穩(wěn)定(池滿了就新建,應(yīng)用不會(huì)等待,但是如果連接數(shù)過多,數(shù)據(jù)庫(kù)可能掛, 從而導(dǎo)致應(yīng)用掛)
遺莣 回答

雙方括號(hào)代表這是JavaScript引擎內(nèi)部使用的屬性/方法,可以幫助debug(點(diǎn)一下[[FunctionLocation]]就能跳到定義,點(diǎn)一下[[Scopes]]就能查看閉包),但是正常JavaScript代碼是取不到這些屬性的。

引擎看心情決定要顯示哪些內(nèi)部屬性,顯示的格式也沒有規(guī)定,但在控制臺(tái)里大家一般都約定俗成用雙方括號(hào),保持和規(guī)范的格式一致。

ECMA 標(biāo)準(zhǔn): Object Internal Methods and Internal Slots

失魂人 回答
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title>demo</title>
<style> 
#main
{
    width:220px;
    height:300px;
    border:1px solid black;
    display:flex;
}

#main div
{
    flex:1;
}
</style>
</head>
<body>

<div id="main">
  <div style="background-color:coral;">紅色</div>
  <div style="background-color:lightblue;">藍(lán)色</div>  
  <div style="background-color:lightgreen;">帶有更多內(nèi)容的綠色 div</div>
</div>

<p><b>注意:</b> Internet Explorer 9 及更早版本不支持 flex 屬性。</p>
<p><b>注意:</b> Internet Explorer 10 通過 -ms-flex 屬性來(lái)支持。 IE11 及更新版本完全支持 flex 屬性 (不需要 -ms- 前綴)。</p>
<p><b>注意:</b> Safari 6.1 (及更新瀏覽器) 通過 -webkit-flex 屬性支持。</p>

</body>
</html>