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

鍍金池/ 問(wèn)答
執(zhí)念 回答

試試下面的腳本,設(shè)置detail_page為priority=2會(huì)讓結(jié)果更早出現(xiàn)

#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Created on 2018-01-22 12:13:12
# Project: 51job


from pyspider.libs.base_handler import *

class Handler(BaseHandler):
    crawl_config = {
    }

    @every(minutes=24 * 60)
    def on_start(self):
        self.crawl('http://jobs.51job.com/', callback=self.main_index, validate_cert=False, age=0)

    @config(age=10 * 24 * 60 * 60)
    def main_index(self, response):
        for each in response.doc('.e5 .lkst a').items():
            self.crawl(each.attr.href, callback=self.index_page, validate_cert=False, age=0)

    @config(priority=1)
    def index_page(self, response):
        for each in response.doc('.e .info .title a').items():
            self.crawl(each.attr.href, callback=self.detail_page, validate_cert=False, age=0,retries=3)
        for each in response.doc('.bk a').items():
            print "deep"
        self.crawl(each.attr.href, callback=self.index_page, validate_cert=False, age=0)
                
    
    @config(priority=2)
    def detail_page(self, response):
        return {
            "公司":response.doc('.cname').text(),
            "公司規(guī)模":response.doc('.ltype').text(),
            "職位":response.doc('h1').text(),
            "薪資":response.doc('.cn strong').text(),
            "描述":response.doc('.job_msg').text(),
            "地點(diǎn)":response.doc('.lname').text(),
        }

<swiper-slide>slide1</swiper-slide>
<swiper-slide>slide2</swiper-slide>
這是兩個(gè)輪播頁(yè)
這樣寫(xiě)應(yīng)該可以
<swiper-slide>slide1,slide2</swiper-slide>
<swiper-slide></swiper-slide>

墻頭草 回答

你這個(gè)是 JDK 版本不對(duì),換個(gè) JDK8 試試

flex布局解決方案:

在外部盒子display屬性設(shè)置為flex,然后在需要空開(kāi)的兩個(gè)元素中間加入一個(gè)空白元素,并設(shè)置css屬性flex: 1 1 auto自動(dòng)填充空白。flex的優(yōu)點(diǎn)就是盒子內(nèi)的元素不會(huì)浮動(dòng),切間隔是動(dòng)態(tài)的,可適應(yīng)各種寬度。

$color_1: #666;
$color_2: #344663;

.dataList {
    >ul {
        display: flex;
        width: 100%;
        >li.spacer {
            flex: 1 1 auto;
        }
    }
    box-sizing: border-box;
    box-shadow: 0 2px 4px 0 #e7e7e7;
    border-radius: 2px;
    height: 78px;
    padding: 0 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    li {
        list-style-type: none;
        font-size: 12px;
        &:nth-of-type(1) {
            color: $color_1;
            font-size: 12px;
        }
        &:nth-of-type(2) {
            font-size: 16px;
            color: $color_2;
        }
    }
    .fontBase {
        font-size: 16px !important;
    }
}
<div class="dataList" style="background: #E9E9E9" v-for="(data, index) in unavailableData" :key="data.voucherId">
    <ul>
        <li class="left-align">
            <div class="userInfo">
                <span>打車(chē)券-</span>
                <span>{{data.voucherReturnCode ? '個(gè)人' : '公共'}}</span>
            </div>
            <div class="dataTime">
                {{data.voucherReturnCode ? '余額' : '有效期至'}}
            </div>
        </li>
        <li class="spacer"></li>
        <li :class="{'fontBase' : data.voucherReturnCode}" class="right-align">
            <div class="numOrResc">
                {{data.voucherReturnCode ? data.voucherReturnCode : data.voucherResc}}
            </div>
            <div class="voucherBalance" v-if="data.voucherReturnCode">
                {{data.voucherBalance}}元
            </div>
        </li>
    </ul>
</div>
墨染殤 回答

既然樓主更新了問(wèn)題,我也更新一下回答
我正好以前看到過(guò)相關(guān)回答,哪里看到忘記了,說(shuō)個(gè)大概意思吧

正成訂單編號(hào)最簡(jiǎn)單的方案應(yīng)該是通過(guò)自增ID了來(lái)編號(hào)了,性能也不錯(cuò),最大的問(wèn)題再于,容易暴露交易量,競(jìng)爭(zhēng)對(duì)手只要一看你的訂單編號(hào),就可以知道你一天大概有多少交易量了,如果對(duì)這方面無(wú)所謂的小型網(wǎng)站,個(gè)人蠻推薦這種方法的,因?yàn)樾阅芤膊诲e(cuò),

隨機(jī)數(shù)字,不用擔(dān)心暴露交易量了,鬼知道你最后幾位數(shù)字什么意思,
但是有一個(gè)性能上的隱患,假如你用6位隨機(jī)數(shù),理論上最大值是 999999 也就是 99萬(wàn),假如你的網(wǎng)站生意特別好,今天已經(jīng)產(chǎn)生了90w訂單了(除了淘寶,京東,12306還有誰(shuí)?),這個(gè)時(shí)候你要做重復(fù)性檢測(cè)性能就會(huì)相當(dāng)差了。

所以這個(gè)時(shí)候你會(huì)相到,如果我預(yù)先生成好 100w的隨機(jī)數(shù)放redis里,要用的時(shí)候取一個(gè),性能和并發(fā)都不存在問(wèn)題了。
但是這個(gè)方案還有問(wèn)題,如果這天生意特別好,100w的隨機(jī)數(shù)用完了,接下來(lái)的人下不了單了,怎么辦,(樓主到底什么公司,這么好生意)

所以可以在這個(gè)解決方案之上再加一個(gè)系統(tǒng),用來(lái)檢測(cè)redis中的隨機(jī)數(shù)余量,當(dāng)少于多少條的時(shí)候,增加一批新的進(jìn)去。
=========更新分割線(xiàn),以下是原回答
日期時(shí)間 + 商家id + 6位隨機(jī)數(shù)字 一般來(lái)說(shuō)夠了,如是不夠,升能位數(shù)唄8位隨機(jī)數(shù),9位?
你注意到了嗎,雙11支付寶交易號(hào)16位升至28位了

拮據(jù) 回答

什么版本的安卓機(jī)器,是所有的安卓機(jī)器都會(huì)這樣嗎?還是部分

寫(xiě)榮 回答

你是通過(guò)js控制的,賦值的時(shí)候給第2個(gè)一起賦值就行了

毀了心 回答

arrKeys.some(key => name.includes(key))

貓館 回答

iview是基于vue框架的,要先引入vue.js再引入iview.js

荒城 回答
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
        <form action="" id="re-form1">
                <!--創(chuàng)建的input標(biāo)簽-->
            </form>
            <div>
                <input class="add" type="text" placeholder="其他..."/>
                <button class="btn">確定</button>
             </div>
    <script src="./js/jquery-2.1.0.js"></script>
    <script>
      $('.btn').click(function(){
           if($('.add').val()){
              var inp = $("<input  type='text'>");
              inp.val($('.add').val());
              $('#re-form1').append(inp);
          }
      })
    </script>
</body>
</html>
挽青絲 回答

phpunit版本問(wèn)題,laravel 5.3依賴(lài)phpunit 5,laravel 5.5 依賴(lài)phpunit 6,所以進(jìn)行以下操作

  • 清理舊版本phpunit,使用composer global remove phpunit/phpunit
  • 安裝新版本phpunit,使用composer global require phpunit/phpunit ^6.2
背叛者 回答

偽類(lèi)不是真正的DOM,不能被js的選擇器選擇,所以不能綁定事件

鐧簞噯 回答

這不是很清楚了嗎? @storybook/react升級(jí)到4.x

瘋浪 回答

'/api' 改成 '/v1', pathRewrite刪除

咕嚕嚕 回答

Vue.prototype.$axios = axios;

Vue.$axios === undefined // true

不知道我解釋的明白不明白

夢(mèng)囈 回答

你能修改,說(shuō)明你知道何時(shí)該處理,所以你可以手動(dòng)觸發(fā) <input>change 事件。或者直接做你想要的操作。

你的問(wèn)題有兩種理解(1)是不知道下載完了沒(méi)沒(méi)法提示,(2)是下載完了不知道怎么提示
先說(shuō)第一種理解吧1.你要是用的Electron系統(tǒng)瀏覽器自己的下載方法的話(huà)會(huì)自動(dòng)觸發(fā)'will-download'消息
mainWindow.webContents.session.on('will-download',(event,item,webContents)=>{
item.once('done', (event, state) => {

if (state === 'completed') 
{
  console.log('Download successfully');
} 
else 
{
  console.log(`Download failed: ${state}`);
}

})
});
這樣你就知道是否下載完了,如果下載函數(shù)是你自己寫(xiě)的話(huà)下載完成沒(méi)你自己肯定知道這里就不說(shuō)了。
第二種理解,在Electron主線(xiàn)程中你可以用console.log();控制臺(tái)輸出提示,也可以用dialog彈窗提示
const {dialog}=require('electron');
dialog.showMessageBox(
null,
{

  type: 'info',
  message: message.updateNotAva

});
還可以主線(xiàn)程給渲染線(xiàn)程通信
在主線(xiàn)程中
mainWindow.webContents.send('alertMessage',message);
在渲染線(xiàn)程中用alert或其它的彈窗提示
const {ipcRenderer} = require('electron');

ipcRenderer.on('alertMessage', (event, text) => {

    alert(text);

});

離人歸 回答

action="http://192.168.1.120:6001/gateway/app/content-aggr/content/addResource":on-change="onchangeFunc" 這個(gè)函數(shù)就是選一張上傳一張