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

鍍金池/ 問(wèn)答
雨萌萌 回答

ref
this.xxx=React.createRef()

class A extends PureComponent{
        constructor(props){
            super(props);
            this.name=props.name;
        }
        show(){
            alert(this.name)
        }
        render(){
            return(
                    <div>1</div>
            )
        }
    }
    class App extends PureComponent{
        constructor(props){
            super(props);
            this.ref=React.createRef();
            this.show=this.show.bind(this);
        }
        show(){
            this.ref.current.show();
        }
        render(){
            return[
                <input type="button" value="show" onClick={this.show} />,
                <A name={'A'} ref={this.ref} />
            ]
        }
    }

類(lèi)似這樣?

青瓷 回答

簡(jiǎn)單方法有2:

  1. 利用Animation Add-Ons,官方文檔
  2. 利用CSS3屬性:transition:all .2s ease;(推薦,簡(jiǎn)單粗暴)
className="this.state.cd_show ? 'comp show' : 'comp'"
.comp {
    opacity: 0;
    transition:all .2s ease;
    &.show {
        opacity: 1;
    }
}
夏木 回答

1.因?yàn)閖Query與axios在post請(qǐng)求中,數(shù)據(jù)的處理方式并不相同。jQuery默認(rèn)數(shù)據(jù)是Form格式,axios則是前后端同構(gòu)的payload形式,這個(gè)區(qū)別造成了后臺(tái)在獲取post請(qǐng)求的數(shù)據(jù)時(shí)獲取方式不同。
2.

axios({
    url: '/api',
    data:data,
    method: 'POST',
    transformRequest:[function(data){
        return qs.stringify(data)
    }]
}).then(...)
情皺 回答

下劃線是 ipython 中的特殊變量,一、二、三個(gè)連續(xù)下劃線分別保存最近的第一、二、三個(gè)結(jié)果。如

In [1]: 123
Out[1]: 123

In [2]: 'abc'
Out[2]: 'abc'

In [3]: _, __
Out[3]: ('abc', 123)
失心人 回答

setTimeout 第一個(gè)參數(shù)必須是個(gè)方法
timer = setTimeout(()=》{this.msg1++} ,5000}

局外人 回答

已解決,我把繪圖方法放到axios回調(diào)函數(shù)里就可以了。

尋仙 回答

這是對(duì)的,你在cmd終端下用dir命令也能看到這兩個(gè)特殊目錄。

如果你學(xué)過(guò)一點(diǎn)點(diǎn)的目錄樹(shù)形結(jié)構(gòu)知識(shí),就應(yīng)該知道每個(gè)目錄下都會(huì)有這兩個(gè)特殊目錄,.指向目錄自身,..指向該目錄的上一級(jí)目錄,于是形成了倒立的樹(shù)形結(jié)構(gòu)。就是這么來(lái)的。這個(gè)在posix環(huán)境也是通用的

使用python的collections

import json
from collections import defaultdict


def main():
    ret = defaultdict(list)
    data = [
     {'_id': '5abb4f9ca7e2c54c757b3e48',
      'amount': 8400,
      'buyerEmail': 'otzYzwMh24edWk8NxSJOqCSZREe0',
      'from': 'weixin',
      'orderid': '2018032816173212079',
      'real': 8400,
      'status': 1,
      'tradeNo': '4200000099201803287230332578',
      'uid': '5abb36051a62067bf7e30178' # 需要把ObjectId處理成字符串
    },
    {'_id': '5b6699f6df03ec3294d7c0a4',
      'amount': 100,
      'buyerEmail': 'otzYzwC3YwRdu7QrWLXqS3VRJybI',
      'from': 'weixin',
      'orderid': '2018080514322245193',
      'real': 100,
      'status': 1,
      'tradeNo': '4200000148201808052403940202',
      'uid': '5a5738411a62061972e128cb' # 需要把ObjectId處理成字符串
    },
    {'_id': '5b6699f6df03ec3294d7c0a4',
      'amount': 200,
      'buyerEmail': 'otzYzwC3YwRdu7QrWLXqS3VRJybI',
      'from': 'weixin',
      'orderid': '2018080514322245193',
      'real': 200,
      'status': 1,
      'tradeNo': '4200000148201808052403940202',
      'uid': '5a5738411a62061972e128cb' # 需要把ObjectId處理成字符串
    },
    ]
    
    for d in data:
        ret[d.get('uid')].append(d)
        
    print(json.dumps(ret, indent=2))
if __name__ == '__main__':
    main()
    
影魅 回答

首先,提問(wèn)時(shí)麻煩把代碼格式調(diào)一下,太不舒服了。

==========================================

問(wèn)題主要是你的select函數(shù)那邊,修改后如下:

struct stu * select(struct stu *head, int n, int m)   // 函數(shù)返回類(lèi)型注意一下,還有第一個(gè)參數(shù)類(lèi)型
{
    struct stu *p1 = head, *p2=p1, *temp=p1;
    for (int i = 0;; i++) {
        if (head->age == m) {
            free(head);
            head = p1->next;
            p1 = head;
            p2 = head;
            flag = 1;
        }
        else if (p1->next != NULL) {
            p2 = p1;
            p1 = p1->next;
            if (p1->age == m) {
                p2->next = p1->next;
                temp = p1;
                p1 = p1->next;
                free(temp);
                flag = 1;
            }
        }
        else if(p1->next==NULL && p1->age==m) {
            p2->next = NULL;
            free(p1);
            p1 = p2;
            flag = 1;
        }
        if (p1 == NULL)        // 這里修改了
            break;
    }
    return head;
}

// main 函數(shù)中調(diào)用
...
head = select(head,n, m);
...

你的select函數(shù)寫(xiě)的有點(diǎn)復(fù)雜,可以看看我的:

struct stu * select(struct stu *head, int n, int m)
{
    struct stu *p1 = head;
    struct stu *p2 = p1;
    while(p1) {
        if(p1->age == m) {
            flag = 1;
            if(p1 == head) { // 第一個(gè)結(jié)點(diǎn)
                head = p1->next;
                delete p1;
                p1 = p2 = head;
            } else {    // 不是第一個(gè)結(jié)點(diǎn)
                p2->next = p1->next;
                delete p1;
                p1 = p2->next;
            }
        } else {
            if(p1 != head ) {
                p2 = p1;
            }
            p1 = p1->next;
        }
    }
    return head;
}

// main 中調(diào)用方式不變
貓館 回答

不會(huì)存在丟失的,本身就是基于tcp的,應(yīng)該是被合并了

巫婆 回答

兄弟,你是用的linux虛擬機(jī)?

膽怯 回答

放大縮小過(guò)程中,字體又沒(méi)有跟著變,相對(duì)位置當(dāng)然變了

尋仙 回答

SELECT goods_id, price, add_time FROM tp_inventory_log WHERE 主鍵ID IN (SELECT max(主鍵ID) FROM tp_inventory_log GROUP BY goods_id) DESC LIMIT 25;
自增主鍵越大——時(shí)間越大,可以考慮下這樣的思路

爆扎 回答

首先你要通過(guò)試圖->團(tuán)隊(duì)資源管理器,打開(kāi)資源管理器窗口。

通過(guò)團(tuán)隊(duì)資源管理器你可以添加你的項(xiàng)目到管理列表中:

圖片描述

添加完成后雙擊你的項(xiàng)目進(jìn)入管理頁(yè)面

圖片描述

圖片描述

你可以拉?。╣it pull)和查看更改(git status),當(dāng)點(diǎn)擊更改后,可以選擇添加哪些文件到臨時(shí)倉(cāng)庫(kù),輸入提交內(nèi)容后可以點(diǎn)擊提交或者提交+推送。

圖片描述

點(diǎn)擊文件夾試圖,你還可以查看提交歷史

圖片描述

圖片描述

圖片描述

你將loading定義為數(shù)組,然后loading:this.loading[params.index],你在根據(jù)點(diǎn)擊傳入的params.index來(lái)改變loading數(shù)組對(duì)應(yīng)的值不就好了

詆毀你 回答

this this this !

setTimeout(()=>{
    alert(1111);  //能執(zhí)行
    this.$router.push({path:"/campaign"}); //不能執(zhí)行,說(shuō)push未定義
},1850)
撿肥皂 回答

Try using npm version less than 5