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

鍍金池/ 問答
慢半拍 回答

運算符 + 在作為一元運算符的時候,如果它的操作數(shù)不是數(shù)值,它會將其轉(zhuǎn)換為數(shù)值。
你也許奇怪這里 + 前面明明有一個空對象({})為什么會把 + 解釋成一元運算符?是因為在這種情況下,前面的 {} 并不是 空對象了,而是 空代碼塊(empty code block)。

何蘇葉 回答

沒用過這個,用過類似的驗證;提供一個大概的方向供參考。
1、v-validate 是根據(jù)誰來校驗的,是否三個用了相同的一個值?
2、動態(tài)添加v-validate

冷咖啡 回答

參考簡數(shù)的博客教程:http://blog.jianshukeji.com/2... (示例中包含地圖)

喵小咪 回答

我在github上找到的答案:
https://github.com/spring-pro...
因為JdbcConnectionRepository 不是public,無法使用代理類產(chǎn)生,如果使用spring boot的話可以設(shè)置spring.aop.proxy-target-class=false

或者在config里
@Bean

@Scope(value = "request", proxyMode = ScopedProxyMode.INTERFACES)
public ConnectionRepository connectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
    Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
    if (authentication == null) {
        throw new IllegalStateException("Unable to get a ConnectionRepository: no user signed in");
    }
    return getUsersConnectionRepository(connectionFactoryLocator).createConnectionRepository(authentication.getName());
}

不適用CGLIB而使用JDK的代理
實在不行那應(yīng)該就是你的spring-boot-devtools的問題,刪除依賴即可

青黛色 回答

目前的方法
1.先判斷一個圖形的點是否在另一個圖形內(nèi)(百度地圖庫支持)
2.再遍歷邊是否有相交

網(wǎng)妓 回答

單頁面可以出來,你把路由的設(shè)置貼出來,看一下

冷眸 回答

用jQuery可以解決
直接選中最后一個p元素,看是不是隱藏的,如果是隱藏的,那么它前一個元素設(shè)置樣式,否則就為這個last元素設(shè)置樣式

<body>
    <div>
        <p>1</p>
        <p>2</p>
        <p style="display:none">3</p>
    </div>
</body>
<script src="../echarts/jquery-3.1.0.min.js"></script>
<script>
    if($("p:last").is(":hidden")){
        $("p:last").prev().css("color","red")
    }else {
        $("p:last").css("color","red")
    }
</script>
青瓷 回答

問題一:

const colorMap = [
  'rgba(255, 255, 255, 1)',
  'rgba(255, 100, 29, 1)',
  'rgba(255, 202, 0, 1)',
  'rgba(139, 245, 77, 1)',
  'rgba(139, 245, 77, 0)',
]
return colorMap[params.data.value[2]] || 'rgba(255, 255, 255, 0)'

問題二: 沒看懂?什么怎刷新? 你要做的是一個倒計時的效果嗎

厭惡我 回答

https://stackoverflow.com/que...

重點大概是,你的情況是正常的,這個代碼也是有用的.
這行代碼主要是避免輸出到終端的內(nèi)容被python緩存,但是通過環(huán)境變量,-u啟動python還有運行的系統(tǒng),都能影響是否緩存,這段代碼能保證在所有的地方都能夠每秒輸出1個數(shù)字,去掉之后在有的地方會出現(xiàn)被緩存的情況.
而你的電腦剛好沒有使用緩存.
好像是windows的很少(不會?)出現(xiàn)被緩存的情況.

疚幼 回答

使用now()函數(shù)和+/-時間間隔的方法
select now() - interval '2 day';

參考:http://www.cnblogs.com/mchina...

淡墨 回答

為什么一定要設(shè)置標(biāo)題的邊距,不能設(shè)置圖片的邊距呢

法克魷 回答
<?php 
/**
 * 分配函數(shù)
 *
 * @author Flc  <2017-12-07 22:14:12>
 * @link   http://flc.ren
 * @param  array  $couriers 快遞員
 * @param  array  $packages 包裹
 * @return array            key為快遞員;值為包裹
 */
function dist($couriers = [], $packages = [])
{
    $couriers      = array_values($couriers);
    $packages      = array_values($packages);
    $courier_count = count($couriers);

    $result = [];

    foreach ($packages as $key => $package) {
        $remainder = ($key + 1) % $courier_count;

        $sub = ($remainder ?: $courier_count) - 1;
            
        $result[$couriers[$sub]][] = $package;
    }

    return $result;
}

$arr1 = ['p1', 'p2', 'p3', 'p4', 'p5', 'p6', 'p7'];
$arr2 = ['b1', 'b2', 'b3', 'b4', 'b5', 'b6', 'b7', 'b8', 'b9', 'b10'];

print_r(dist($arr1, $arr2));

結(jié)果如下:

Array
(
    [p1] => Array
        (
            [0] => b1
            [1] => b8
        )

    [p2] => Array
        (
            [0] => b2
            [1] => b9
        )

    [p3] => Array
        (
            [0] => b3
            [1] => b10
        )

    [p4] => Array
        (
            [0] => b4
        )

    [p5] => Array
        (
            [0] => b5
        )

    [p6] => Array
        (
            [0] => b6
        )

    [p7] => Array
        (
            [0] => b7
        )

)
選擇 回答

為什么不每次只取最后一條,分類了好就刪了或做個標(biāo)識,然后while.

有點壞 回答

devserver的意思就是只在開發(fā)環(huán)境生效,打包到線上肯定就不生效了啊。因為打包之后沒有devserver了

青裙 回答

1.這個就應(yīng)該冗余了,你目前沒更多需求,但是要考慮到將來可能潛在的需求。
id,user_id,article_id
什么是可能是潛在的需求呢
2.舉個例子,比如說你們做了社交圈子,比較常見的設(shè)計就是找出和你有共同興趣愛好的人,那么你如何去找,是不是得分析數(shù)據(jù),那么共同收藏是不是可以作為一個點。而且SQL只要這么寫SELEC * from shoucang where article_id= {你收藏文章的ID} limit 10,可以走索引,不會造成性能開銷
3.數(shù)據(jù)庫設(shè)計中,涉及到 1:N , N:N 。無論前期需求如何,一定要設(shè)計一張中間表。

尐潴豬 回答

"由于生產(chǎn)環(huán)境限制,只能對外開放一個端口9988,其他人寫的項目也要用這個端口,所以只能用不同的請求路徑來區(qū)分不同的項目。" 也就是說你們通過路徑(location)來區(qū)分的應(yīng)用,并不是域名(server_name)因此不存在后續(xù)的所謂“虛擬主機(jī)”的概念。而且nginx并不存在一個虛擬主機(jī)的概念(吐槽:部分博客、技術(shù)文章里面概念亂入),參見:Server Block Examples

從你的上下文分析,你的需求:

  1. url "http://[host]:9988/nbmsg" 返回 "/usr/local/m2m/nbMsg/browser/dist" 中的內(nèi)容
  2. url "http://[host]:9988/nbmsg/api/v1" 由后端服務(wù)“ 8989”處理

順便說下,你這段含糊不清

我想配置成訪問http://[host]:9988/nbmsg,能夠默認(rèn)返回/usr/local/m2m/nbMsg/browser/dist目錄下的html靜態(tài)頁面文件,然后頁面上的ajax請求都是/api/v1開頭的,需要代理到8989端口。

很容易讓人理解為你的ajax完成的url是http://[host]:9988/api/v1,但從你的配置中看又不是, 同時如果你使用了html base標(biāo)簽等,但代碼中使用/api/v1類似相對路徑的話又受base標(biāo)簽影響,也就是/api/v1這個路徑的實際url僅從配置分析得出的是http://[host]:9988/nbmsg/api/v1

基于以上分析,調(diào)整后的配置如下:

server {
    listen 9988;
    root /server/html;

    # Add index.php to the list if you are using PHP
    index index.html index.htm index.php index.nginx-debian.html;

    location / {
        index index.html index.htm index.php;
    #    try_files $uri $uri/ =404;
    }

    location /business/ {
        #    root /server/html;
        try_files $uri $uri/ /business/public/index.php?$query_string;
    }

    ####################################################################
    # request entrance
    ####################################################################

    location /nbmsg {
        alias /usr/local/m2m/nbMsg/browser/dist;
    }
    location /nbmsg/api/v1 {
        proxy_pass http://127.0.0.1:8989;
        proxy_connect_timeout 600;
        proxy_send_timeout 600;
        proxy_read_timeout 600;
        proxy_set_header Host $http_host;
        proxy_set_header X-Real_IP $remote_addr;
        client_max_body_size 300m;
        client_body_buffer_size 256k;
        proxy_buffer_size 128k;
        proxy_buffers 8 32k;
        proxy_busy_buffers_size 128k;
        proxy_temp_file_write_size 128k;
    }

    error_page 404 /404.html;
    error_page 500 502 503 504 /50x.html;

    location = /50x.html {
        root /server/html;
    }

    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
        add_header Access-Control-Allow-Origin *;
        add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";
        add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
    }
}
冷眸 回答

刪除倉庫,以前的貢獻(xiàn)會消失
清空項目但是不刪除倉庫,則不會

局外人 回答
  export default {
    name: 'daohangafter',
    data() {
      return {
        loading: false,
        post: null
      }
    },
    router
  }