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

鍍金池/ 問答
大濕胸 回答

$('.nav-btn-active').removeClass('nav-btn-active');
$(this).addClass('nav-btn-active');

糖豆豆 回答

火狐下, button 內(nèi)的子元素的 click 事件會被攔截掉,
所以你 button 里的 span 點(diǎn)擊無效,但 div 里的 i 點(diǎn)擊有效。
如果你需要 span 擁有點(diǎn)擊效果,則把 button 改為 div 即可,可以將 button 樣式加在 div 上。

大濕胸 回答

angular針對你說的這個情況提供了解決方案了,
router里面提供了兩個接口[canActivate][1][CanDeactivate][2]

你可以根據(jù)你自己的需求,實(shí)現(xiàn)這兩個接口,并配置在router里面,這兩個接口就相當(dāng)于router的guard,在跳轉(zhuǎn)之前先調(diào)用你的處理邏輯。

這是官方的例子:

class UserToken {}
class Permissions {
  canDeactivate(user: UserToken, id: string): boolean {
    return true;
  }
}

@Injectable()
class CanDeactivateTeam implements CanDeactivate<TeamComponent> {
  constructor(private permissions: Permissions, private currentUser: UserToken) {}

  canDeactivate(
    component: TeamComponent,
    currentRoute: ActivatedRouteSnapshot,
    currentState: RouterStateSnapshot,
    nextState: RouterStateSnapshot
  ): Observable<boolean>|Promise<boolean>|boolean {
    return this.permissions.canDeactivate(this.currentUser, route.params.id);
  }
}

@NgModule({
  imports: [
    RouterModule.forRoot([
      {
        path: 'team/:id',
        component: TeamCmp,
        canDeactivate: [CanDeactivateTeam]
      }
    ])
  ],
  providers: [CanDeactivateTeam, UserToken, Permissions]
})
class AppModule {}
誮惜顏 回答

可以配置dropdownClassName或者dropdownStyle

焚音 回答

demo 附上鏈接
calc(25% - 45px) 是calc((100% - (3*60)px)/4) 得出來的

不過一般我如果確定是兩行6個的話,不會為了節(jié)約一行,而取巧的,乖乖寫兩個row,每個row下面3個元素,用個 justify-content: space-evenly;就得到你要的效果了

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style type="text/css">
    body{
      margin: auto;
      padding: 0;
    }
    .list{
      display: flex;
      align-items: center;
      flex-wrap: wrap;
    }
    .list>div{
      width: 60px;
      height: 60px;
      background: pink;
      margin-left: calc(25% - 45px);
      margin-bottom: 10px;
    }
    .list>div:nth-child(3n+3){
      margin-right: calc(25% - 45px);
    }
  </style>
</head>
<body>
  <div class="list">
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
    <div>6</div>
  </div>
</body>
</html>
不舍棄 回答

@Captain @Just_do 為什么在chrome里斷點(diǎn)調(diào)試看到this指向的是構(gòu)造函數(shù)Parent
圖片描述

經(jīng)過chrome斷點(diǎn)測試,并不是因?yàn)闆]有先new Parent()實(shí)例化導(dǎo)致this指向Parent。構(gòu)造函數(shù)的prototype的屬性上,this都是指的Parent。。。。。。(做個備注,方便下次查看)

命多硬 回答
  1. 修改本地git的config,包括email和name。
  2. 重新生成sshkey
清夢 回答

code:

package main

import "fmt"

type Node struct {
    _  int
    id int
}

func main() {
    n := Node{
        id: 1,
    }
    fmt.Println(n)
}

這個補(bǔ)位字段,它不能讀取,不能賦值,作用就是占個位置。

櫻花霓 回答

個人覺得,其實(shí)這個跟你需要完成的任務(wù)有關(guān)。打個比方,你只是自己想寫一個程序,方便自己工作,那你就可以寫函數(shù)為主,反正自己知道這些函數(shù)什么意思,有時(shí)候換地方使用直接copy一下,修修改改就好了。
而如果是完成某個大的項(xiàng)目,項(xiàng)目要分很多塊,那么就必須寫類了。有人說我寫個函數(shù),最終實(shí)現(xiàn)起來還不是一樣?實(shí)現(xiàn)起來是一樣,那么后期維護(hù)呢?你是更喜歡看一個模塊,這個模塊有幾個類,還是說喜歡看幾十個函數(shù)呢?顯而易見,一般稍微有點(diǎn)樣子的項(xiàng)目都是分成幾個模塊,每個模塊會分出幾個類來各自實(shí)現(xiàn)某個特定的任務(wù)。到代碼層的時(shí)候,才會需要看函數(shù)的代碼。
如果一個項(xiàng)目是由按照某些順序,直接調(diào)用幾十個函數(shù)完成的,相信后期維護(hù)的人會瘋吧?好氣啊,全是函數(shù),雖然有說明,也很費(fèi)事的吧?

擱淺 回答

1:實(shí)現(xiàn)拖拽指令;
2:儲存所有目標(biāo)區(qū)域碰撞檢測區(qū)域;
3:實(shí)現(xiàn)碰撞檢測;
4:插入拖拽物。

涼心人 回答

settings>plugins添加對應(yīng)框架插件試試

澐染 回答

別用浮動啦,用flex吧

舊酒館 回答

是不是沒有commit,數(shù)據(jù)庫可能設(shè)置的不是自動commit,你insert了數(shù)據(jù)之后沒有commit的話,當(dāng)次connect都算在做一個事務(wù),所以可以select到數(shù)據(jù),但是斷開connect之后,你的數(shù)據(jù)就不見了

小眼睛 回答

好吧,發(fā)了問題不多久就明白該怎么做了。
直接

model.findOne({/*篩選條件*/},function(err,doc){
    //doc就是一個父文檔,然后賦給一個變量,直接操作這個變量后,直接doc.save()就好了
    let a = doc;
    // 直接操作a.['字段'][0],然后調(diào)用doc.save()就好了
    doc.save(function(err){
        if(err){
            console.log(err);
        }
    })
})

你可以直接把這段html提前放在template,用v-ifv-show指令讓它在success回調(diào)的時(shí)候顯示。
恕我直言,你要做的是多看幾遍文檔趕快改變你把vue當(dāng)jquery用的思想

拽很帥 回答

Component

Component({
  properties: {},

  data: {
    info:'我是子組件的值'
  },

  methods: {
    modalClear:function(){
      let myEventDetail = this.data.info;
      this.triggerEvent('myevent',myEventDetail,{bubbles:false});
    }
  }
})

index.wxml

//組件
<my-component modal-hidden="{{is_modal_Hidden}}" modal-msg="{{is_modal_msg}}" bind:myevent='onMyevent'></my-component>

index.js

  onMyevent:function(e){
    console.log(e.detail);
  }

clipboard.png

clipboard.png
nginx訪問靜態(tài)文件和uwsgi是沒啥關(guān)系的,都是一樣的配制方法.無論用gunicorn還是uwsgi都是這么配置.
這是我隨手截圖的寫法,用的是root,
按照alias寫法,就要在下邊的路徑加上/static/
你看看加上尾部的/行不行.

還有就是nginx是否有權(quán)限訪問你的文件目錄的問題.看一下nginx運(yùn)行的用戶是誰

薄荷糖 回答

git,在服務(wù)器建個庫,把代碼拉到本地,修改提交就能更新服務(wù)器代碼

孤巷 回答

vue 相關(guān)的插件啊