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

鍍金池/ 問答
刮刮樂 回答

庫不對啊。。重新編譯安裝下看看

耍太極 回答

可以 watch 也可以 computed。
watch 的話需要 deep watch:

watch: {
    list: {
        deep: true,
        handler( newList, oldList){
            const changedIndex = newList.findIndex((item, index)=> {
                oldList[index] !== item // 這里判斷不嚴(yán)謹(jǐn),你自己寫判斷方法
            })
            // changedIndex 就是發(fā)生改變的位置
        }
    }
}

computed 需要計算出你需要監(jiān)聽的那一項,然后再 watch 它,適合你明確知道自己想監(jiān)聽第幾項的情況,比上邊的性能好一點,畢竟監(jiān)聽的少。

離魂曲 回答

src那里,你jscss后綴是.json么。

陪她鬧 回答

http request消息里面請求行攜帶了請求類型是[get]還是[post],或者是其他[put] [head]等,瀏覽器會對報文進(jìn)行解析。
請求行以一個請求類型符號開頭,以空格分開,后面跟著請求的URI和協(xié)議的版本。

默認(rèn)是get.

兮顏 回答

你好,請問rules里的validator可以和async-validator結(jié)合起來嗎?難道得一個的寫驗證器

黑與白 回答

canvas上畫的球 你肯定能獲取到球的圓心坐標(biāo),只需要判斷你鼠標(biāo)點擊的點和圓心的距離, 是否小于半徑,小于半徑就說明在圓內(nèi) 就可以出發(fā)點擊事件

舊時光 回答

babel能力有限,不能使得轉(zhuǎn)換后的ES5代碼擁有塊級作用域.所以這里的解決方案是把同名變量的換成名字不同的變量,從而起到同樣的效果

澐染 回答

要發(fā)布成ios的安裝包,不知道你用的是什么工具,看跳轉(zhuǎn)是怎么怎么控制的,你自己先打個包試試看看會有哪些問題不就知道了嗎

吢涼 回答

module不是這樣配置的

module: {
    rules: [
      {
        test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
        loader: require.resolve('url-loader'),
        options: {
          limit: 10000,
          name: 'static/media/[name].[hash:8].[ext]',
        },
      },
    ]
  }

第一層元素是rules

絯孑氣 回答
function getDirTree( inputPath, callback){
     let files = fs.readdirSync(inputPath)
     for(file of files){
         let filePath = inputPath + '/' + file;
         let fileState = fs.statSync(filePath);
         if(fileState.isDirectory()){ // 如果是目錄 遞歸
             getDirTree(filePath)
         }else{
             console.log(file)
         }
     }
     callback && callback.call();
}
getDirTree(rootPath, function(){
    console.log('end.....');
})
孤慣 回答

你試試把 postcss-load 放在最后面? 加載器是倒敘 注入的。

愛礙唉 回答
var o={
        "A": {
            "a1": 1,
            "a2": 2
        },
        "B": {
            "b": 3
        },
        C:{
            a:1,
            b:{
                c:2
            }
        }
    }
    var comType=['object','array'];
    function plat(o,prekey,resobj){
        prekey=prekey?prekey+'.':'';
        var keys=Object.keys(o);
        keys.forEach(function(item){
            var v=o[item];
            var type=typeof v;
            if(v && comType.indexOf(type) != -1){
                plat(v,prekey+item,resobj);
            }else{
                resobj[prekey+item]=v;
            }
        })
    }
    var result={};
    plat(o,'',result);
    console.log(result);
離人歸 回答

關(guān)于第二種情況的解釋是這樣的:
對于javascript,只有在方法真正執(zhí)行時才會讀取所涉及的變量值。像 show(i) 這個方法的i值并非如你所料的依次傳參為 0、1、2...然后延時執(zhí)行。實際發(fā)生的情況是,等延時結(jié)束開始執(zhí)行 show方法時,show方法才取讀取 i 值 ,而此時它的值應(yīng)該是 cards.length ,結(jié)果出現(xiàn)所有的輸出結(jié)果都會是相同的值。

徹底理解偏了,樓上 @可好了 的說法是正確的。那是執(zhí)行函數(shù)的用法,是立即執(zhí)行的。

尕筱澄 回答

我測試驗證了下,主線程會等待,因為ScheduledExecutorService沒有被shutdown,你的需求是什么?如果你希望執(zhí)行結(jié)束后結(jié)束進(jìn)行,那么shutdown即可。

你參考下以下例子:

public static void main(String[] args) throws IOException {
        Object agentInfo = null;
        Integer samplingInterval = 30;

        ScheduledExecutorService executorService = new ScheduledThreadPoolExecutor(10);
        executorService.schedule(new WatchAgent(agentInfo), 1, TimeUnit.SECONDS);
//        executorService.scheduleAtFixedRate(new WatchAgent(agentInfo), 0, samplingInterval, TimeUnit.SECONDS);
        System.err.println("FINISH");
}

static class WatchAgent implements Runnable {

    public WatchAgent(Object info){

    }

    public void run(){
        try{
            System.out.println("Running " + this.hashCode() + " - started on/at " + (new Date()));
            Thread.sleep(6000);
            System.out.println("Running " + this.hashCode() + " - finished on/at " + (new Date()));
        }catch(Exception ex){
            ex.printStackTrace();
        }
    }
}
伐木累 回答

是配置那邊寫錯了,在一個配置文件里前面log配置了socket ,后面log又配置成了file ,相當(dāng)于后面的log配置重置了前面的配置, 關(guān)于socket配置那個是沒有問題的

傻丟丟 回答

util.showLoading('xxx') 返回的是 undefined ,當(dāng)然不能再調(diào)用 .bind(null) 。

失魂人 回答
submit(e) {
        e.preventDefault();
        }
    

action是表單提交的默認(rèn)事件,在你的提交事件中,增加阻止默認(rèn)事件的語句。

獨特范 回答
pip install bs4
pip install lxml
import re
import requests
from bs4 import BeautifulSoup
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36',
    'Referer': 'http://cq.jiaoyubao.cn/',
    'Host': 'cq.jiaoyubao.cn',
    'Upgrade-Insecure-Requests': '1',
}

r = requests.get('http://cq.jiaoyubao.cn/cn/xiaoxue/', headers=headers)

soup = BeautifulSoup(r.content, 'lxml')
print(soup.prettify())
朽鹿 回答

上nginx,可以設(shè)置servername解決。