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

鍍金池/ 問答/ HTML5問答
別傷我 回答

node在后端大公司不會全站用,都會做成接入層,核心邏輯用RPC調(diào)用做的。
如果是一般項目,可以考慮koa,express,eggjs這種web框架。
加上現(xiàn)在docker化的開發(fā),nodejs這點上比PHP方便

尛憇藌 回答

@keyup.native.enter

殘淚 回答
    this.yearList = this.service.getYearList()
        .do(yearList => {
            if (this.year.value === '0' && yearList.length > 0) {
                this.year.next(yearList[0]);
            }
        })
朕略傻 回答

排查問題:
1、將你要賦的值打印出來看看存不存在?
2、隨便為附一個值:document.getElementById("telephone_input").value = '123123';看看能不能成功?

敢試 回答

送你一個參考文章,注意你第二次選擇圖片的時候是不是深度替換了你的監(jiān)聽方法,和圖片的編碼數(shù)據(jù)。關于前端圖片裁切并上傳的使用總結(jié)!

希望對你有幫助

扯不斷 回答

這樣就不是很明顯

clipboard.png

祈歡 回答

我們都用Ant Design,踩過了很多坑,也填了很多坑。

醉淸風 回答

不能pull和push,建議重新add和commit,再重新pull和commit

愿如初 回答

官網(wǎng)JSSDK中并沒有提及到這個api。應該是不可以

替身 回答

width: 100%;flex:1,讓線段占據(jù)剩余寬度。

獨特范 回答

字段名拼寫錯誤:module指模塊,model指模型

HTML結(jié)構(gòu)中的數(shù)據(jù)模型綁定字段應該為ng-model

九年囚 回答

用下面的方式可以

const Weather = Loadable({ 
    loader: () => import('./weather').then(({ view }) => view), 
    loading: () => <div>loading...</div> 
});
懶洋洋 回答

可以在指令的宿主元素下加一個ng-container作為動態(tài)組件容器,ng-container會在渲染時消失。
指令可以做一些修改:

@Directive({
  selector: '[appTxt]'
})
export class TxtCopyDirective {

  @Input('appTxt') dyView:any

  constructor(
    private el: ElementRef, 
    private renderer2: Renderer2, 
    public viewContainerRef: ViewContainerRef, 
    private componentFactoryResolver: ComponentFactoryResolver
  ) {}

  @HostListener('click', ['$event']) onclick(event: any) {
    this.dyView.clear();
    const componentFactory = this.componentFactoryResolver.resolveComponentFactory(動態(tài)組件);
    this.dyView.createComponent(componentFactory);
  }

}

目標元素:

<span [appTxt]="dyView">
  click
  <ng-container #dy></ng-container>
</span>

目標元素所在組件獲取ng-container容器作為參數(shù)傳給指令:

@ViewChild('dy',{read:ViewContainerRef}) dyView:ViewContainerRef
離人歸 回答

以1px下邊框為例
定義一個border-bottom-1px的mixin,設置一個顏色參數(shù) @color。

@mixin border-bottom-1px($color){
    position: relative;
    &:after{
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        border-top: 1px solid $color;
        content: ' ';
    }
}

對border-bottom-1px進行縮放

@media (-webkit-min-device-pixel-ratio: 1.5),(min-device-pixel-ratio: 1.5){
    .border-bottom-1px{
         &::after{
             -webkit-transform: scaleY(0.7);
             transform: scaleY(0.7);
         }
    }
}

@media (-webkit-min-device-pixel-ratio: 2),(min-device-pixel-ratio: 2){
    .border-bottom-1px{
         &::after{
             -webkit-transform: scaleY(0.5);
             transform: scaleY(0.5);
        }
    }
}

@media (-webkit-min-device-pixel-ratio: 3),(min-device-pixel-ratio: 3){
    .border-bottom-1px{
         &::after{
             -webkit-transform: scaleY(0.3);
             transform: scaleY(0.3);
        }
    }
}

如何使用?
html如下:

<div class="border-bottom-1px-test">這個元素有一個1px的下邊框</div>

css如下:

.border-bottom-1px-test{
    @include border-1px(rgba(7, 17, 27, 0.1));
}

寫css的時候記得先引入border-bottom-1px這個mixin哦。

擱淺 回答

echarts中可以用rich自定義富文本樣式如果沒用下載最新echarts 4
富文本標簽
實例

涼汐 回答
        *{
            padding: 0;
            left: 0;
        }
        body{
            padding-top: 50px;
        }
        .header{
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 50px;
            line-height: 50px;
            text-align: center;
            background-color: red;
            z-index: 10001;
        }
        .layout{
            display: flex;
            position: relative;
        }
        .layout .layout-left{
            flex: 0 0 200px;
            flex-direction:column;
            width: 200px;
            color: #fff;
            background-color: blue;
        }
        .layout .layout-right {
          background-color: yellow;
          overflow-y: auto;
          overflow-x: hidden;
          position: absolute;
          left:215px;
          top: 0;
          bottom: 0;
          right: 0;
          margin: auto;
      }
糖果果 回答

assetsPublicPath: './'

utils.js

if (options.extract) {
      return ExtractTextPlugin.extract({
        use: loaders,
        fallback: 'vue-style-loader',
        publicPath:'../../'
      })
    } else {
      return ['vue-style-loader'].concat(loaders)
    }

webpack.base.conf

{
   test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
   loader: 'url-loader',
   options: {
     limit: 10000,
     name: utils.assetsPath('img/[name].[hash:7].[ext]'),
     outputPath: process.env.NODE_ENV === 'production' ? '../' : ''
  }
},