鍍金池/ 問答/ HTML問答
北城荒 回答
legend: {
    data:['郵件營銷','聯(lián)盟廣告','視頻廣告','直接訪問','搜索引擎']
},
這個屬性去掉就可以了,
沒事多看文檔.
補(bǔ)充
我以為是echarts。
chartsjs依然有這個類似的東西。。去掉或者填空
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],

自己動手豐衣主食
命多硬 回答

三層結(jié)構(gòu)

{
    path: '/menu',
    children: [{
        path: 'a1',
        children: [{
            path: 'a1-1'
        }] 
    }]
}
妖妖 回答

使用a標(biāo)簽, route 是單頁路由切換

安于心 回答

你這不是已經(jīng)裝上了?

寫榮 回答

看描述,似乎含有「列表名字」的行總是以>開頭的?
那么兩個>之間的內(nèi)容就是列表名字 + 行內(nèi)容了吧。

代碼思路如下,沒有實(shí)際跑過:

current_content = ''
current_name = ''

for line in f:
    line = line.strip()
    if line.startswith('>'):  # 判斷開頭是否為 >
        name = line[1:]       # 去掉 >
        if current_content:
            # 處理當(dāng)前的內(nèi)容
            r = ratio(current_content)
            count.append((current_name, r))  # 將 tuple 插入 list, 此時 current_name 尚未更新
        current_name = name  # 更新 current_name
        current_content = '' # 重置 current_content, 準(zhǔn)備記錄新的內(nèi)容
    else:
        current_content += line
久愛她 回答

問題解決了
自己看錯了

冷眸 回答

你沒有定義store去存數(shù)據(jù)嗎?

import { observable } from 'mobx';
class irr_state {
    @observable categoryId =  '';
}
const irrStore = new irr_state();
export default irrStore;

-----------------------------------------------------------------

@action selectProduct(){
     irrStore.categoryId = esult.dataRow.categoryId;
}

@action selectByCategory(){
     GoodsService.selectByCategory( irrStore.categoryId )
}
枕頭人 回答

一般建議直接用原生的<input type='file'>,微信那個接口其實(shí)挺難用的,還得先上傳到微信那邊再拉下來自己服務(wù)器,不如直接在前端用canvas壓縮下然后直接傳后臺就行了,主要是去掉EXIF信息和統(tǒng)一格式。壓縮可以用現(xiàn)成的庫,可以避免踩判斷照片方向的坑。

陌璃 回答

你要保證滾動內(nèi)容容器總高度大于外層展示容器。

<div id="demo01">
    <div class="scrollBox">
        <ul>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
</div>

<script>
    new BScroll(document.getElementById('demo01'),{
        bounce:true,
        momentumLimitDistance:5
    });
</script>

也就是說demo01的高度要小于scrollBox的高度

故林 回答

當(dāng)前文件夾下 npm list babel-eslint, npm list --depth=0查看所有已安裝本地模塊

貓小柒 回答

可以setState存到state里去,在upload組件里從state里取,但是你用了img的onload事件,可能是異步的,所以最終upload組件提交的時候不一定能取到這個key

祈歡 回答

從你發(fā)的代碼中看不出問題來。

念初 回答

https://github.com/zhouyupeng... 他不是有源碼嗎?看看他的拉下來怎么樣咯

雅痞 回答

你的倒數(shù)第二句話對了。你這個思想就錯了。 vue是基于dom的最好不要手動操作dom

若相惜 回答

1.是不是網(wǎng)絡(luò)傳輸?shù)倪^程慢可以記錄一下前端發(fā)送請求的時間,后端接收到請求的時間,比一下看看,有多少差距,正常來說150K的表單不會影響請求速度的,如果這個都會影響,那文件上傳怎么辦

裸橙 回答

已解決,html 有個標(biāo)簽沒閉合

別傷我 回答

df.drop(df.index[1:][df.B[1:]<df.B[:-1]])


需要根據(jù)B列篩選,條件為目標(biāo)列的后值大于前值,把index=4的這行去掉

@zoujj

>>> import pandas as pd
>>> df = pd.DataFrame(list(range(1,8)),columns=['B'])
>>> df.B[4]=3
>>> df['A']=1
>>> df
   B  A
0  1  1
1  2  1
2  3  1
3  4  1
4  3  1
5  6  1
6  7  1
>>> df[(df.B[1:]<df.B[:-1])] # @zoujj 的方法是錯的
Traceback (most recent call last):
  File "<pyshell#21>", line 1, in <module>
    df[(df.B[1:]<df.B[:-1])]
……
pandas.core.indexing.IndexingError: Unalignable boolean Series key provided
>>> df.drop(df.index[1:][df.B[1:]<df.B[:-1]])
   B  A
0  1  1
1  2  1
2  3  1
3  4  1
5  6  1
6  7  1
>>>