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

鍍金池/ 問答
傻丟丟 回答

.el-scrollbar__wrap{overflow-x: hidden;}有用的,不要寫在<style scoped></style>,自己另外寫css引入文件。

選擇 回答

APP入口的模板是怎么寫的。

<template>
<div id="app">
<router-view>
<!-- 渲染時 router-view 引用的其他組件下還有 router-view 才是對應(yīng)的子路由children -->
        <router-view></router-view>

</router-view>
</div>
</template>

也就是說你引用的Group @/components/groupManagement/group.vue
這個文件里應(yīng)該還有一個<router-view></router-view> 來渲染對應(yīng)的子路由。

赱丅呿 回答

Demo

<i-option v-for="item in managements"
              :value="item.shortName"
              :key="item.companyId">
屬性 說明 類型 默認值
value 選項值,默認根據(jù)此屬性值進行篩選,必填 String,Number
孤星 回答

方法是對的,我把點擊事件寫在了外面,所以點擊事件沒有觸發(fā)

孤客 回答

pfsockopen — 打開一個持久的網(wǎng)絡(luò)連接或者Unix套接字連接。

resource fsockopen ( string $hostname [, int $port = -1 [, int &$errno [, string &$errstr [, float $timeout = ini_get("default_socket_timeout") ]]]] )

從文檔中可以看出, int &$errnostring &$errstr 是引用類型, 不能直接賦值。

在 PHP 5.6 / PHP 7.1.16 (cli) 執(zhí)行結(jié)果如下

Fatal error: Only variables can be passed by reference in xxx.php on line 2

修改后代碼如下

<?php
$res = fsockopen('smtp.163.com', 25, $errno, $errmsg, 10);

var_dump($errno, $errmsg);
疚幼 回答

IE環(huán)境下不僅有JavaScript,還有自家默認的VBScript,所以必須聲明type屬性。
其他游覽器默認使用的是JavaScript,不需要什么聲明。
擴展:VBScript不能用于HTML5中。
正確寫法:

<script type="text/javascript" src="common/jorzlo-index.js">
    // code here
</script>
蔚藍色 回答

你的這個問題挺有趣,我先根據(jù)這個漢字編碼查,我用js utf8轉(zhuǎn)漢字轉(zhuǎn)不過來,后來研究了一下你發(fā)的這個json解釋的網(wǎng)站,他只是jQuery append了一下<span>&#38518;&#20029;&#25991;</span>就轉(zhuǎn)成了漢字,這個很神奇,
然后我試了一下原生js dom節(jié)點innerHTML插入這個也可以,也就是插入節(jié)點時就直接轉(zhuǎn)成漢字了,原理不明
然后你再innerText拾取的就是轉(zhuǎn)換后的

萌吟 回答

mysql 的 if 了解下。

別硬撐 回答

ios瀏覽器和chrome都默認禁用自動播放,原因是浪費用戶流量。
你可以在body監(jiān)聽touchstart然后播放

念舊 回答

sudo apt-get install python3.6-tk

夢一場 回答

你visitor里面寫的啥啊

舊螢火 回答

首先,你的部署思路沒搞清楚。

下面,用一個最簡單的例子,來嘗試說明。

場景設(shè)置:

操作系統(tǒng):ubuntu 18.04 LTS
不考慮防火墻和AppArmor
python環(huán)境使用pythonenv進行管理,路徑為/home/username/.virtualenvs/hello
假定我的Flask應(yīng)用如下/home/username/project/hello.py(摘自Flask官方文檔):

# hello.py
from flask import Flask
app = Flask(__name__)

@app.route('/')
def hello_world():
    return 'Hello, World!'

問題:如何使gunicorn在后臺運行(daemonize)?

直接在命令行運行g(shù)unicorn,只適合開發(fā)或者debug場景,生產(chǎn)環(huán)境要求gunicorn必須在后臺運行(daemonize)。
當(dāng)然,你可以直接在terminal下運行下面的命令,強制gunicorn以后臺模式(&)運行。

gunicorn --bind /run/gunicorn/socket --pid /run/gunicorn/pid hello:app &

但是,這種模式有先天缺陷,比如使得gunicorn依賴于運行它的terminal,從可靠性(比如當(dāng)運行它的terminal進程掛了,gunicorn也就掛了)和可用性(比如系統(tǒng)重啟后,gunicorn無法自動運行)等角度,都使這種方法不適合在生產(chǎn)環(huán)境中使用。
備注gunicorn--bind參數(shù)值設(shè)置為/run/gunicorn/socket,而不是0.0.0.0:2000,因為unix socket性能高于tcp port,當(dāng)nginxgunicorn不在同一主機時,則只能用tcp port。

解決辦法之一systemd

創(chuàng)建下述文件/etc/systemd/system/gunicorn.service,內(nèi)容如下:

[Unit]
Description=gunicorn daemon
After=network.target

[Service]
PIDFile=/run/gunicorn/pid # PID文件
User=www-data # 進程所屬用戶
Group=www-data # 進程所屬用戶組
RuntimeDirectory=gunicorn # 在/run目錄下創(chuàng)建的目錄名稱
WorkingDirectory=/home/username/project # 網(wǎng)站根目錄,根據(jù)情況進行調(diào)整
ExecStart=/home/username/.virtualenvs/hello/bin/gunicorn --pid /run/gunicorn/pid \
          --bind unix:/run/gunicorn/socket hello:app # gunicorn命令,路徑根據(jù)情況進行調(diào)整
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target

運行如下命令啟動gunicorn服務(wù)并使其開機自動啟動。

sudo systemctl enable --now gunicorn.service

運行如下命令查看gunicorn服務(wù)狀態(tài)。

sudo systemctl status gunicorn.service

備注:除了systemd之外,還可以使用supervisor來管理gunicorn(自行Google)。

nginx設(shè)置

server {
    listen 80;
    server_name www.yourhostname.com;
    location / {
        proxy_pass http://unix:/run/gunicorn/socket;
    }
}
神曲 回答

clipboard.png

不重復(fù)的選擇的話可以用distinct

select distinct(民族) from `學(xué)生`;
我以為 回答

windows 里服務(wù)里面開啟ftp了嗎

陌南塵 回答

可以直接這樣寫

var arr1 = ['a', 'b'];
var arr2 = ['c'];
var arr3 = ['d', 'e'];
[...arr1, ...arr2, ...arr3]
// [ 'a', 'b', 'c', 'd', 'e' ]

clipboard.png

落殤 回答
cannot read property 'length' of undefined

的意思是undefined沒有length屬性,說明說你的resundefined,undefined當(dāng)然沒有length屬性了。

為啥res會是undefined?不是在控制臺里打印出來了嗎?有兩種可能,第一種是你打印的根本就不是同一個res.length(作用域的問題),第二種,也是我認為非常有可能的,就是你還沒搞懂js的異步,前端在發(fā)請求的時候需要你提供一個“回調(diào)函數(shù)”,只有在這個回調(diào)函數(shù)里你才能獲得res。比如

let res;
$.get(url, data => res = data);
console.log(res);  // undefined
res.length  // cannot read property 'length' of undefined

$.get(url, data => {
  console.log(data);
  console.log(data.length);
  // do something here
});
莓森 回答

給你簡單寫了一個
html

<div class="container">
  <div class="content">
    這里是文字
  </div>
</div>

css

.container{
  width:300px;
  height:50px;
  background:pink;
  position:relative;
  overflow:hidden;
}
.content{
  position:absolute;
  animation:move linear 4s infinite;
}
@keyframes move{
  from{
    transform:translateX(-100%);
  }
  to{
    transform:translateX(300px);
  }
}
玩控 回答

如果確定是以http,https開頭的,可以使用

str.match(/(http|https):\/\/.+?\.(jpg|JPG|png|PNG)/)

1、使用split切割

function a(str){
    var arr = []
    var strs = str.split(/(\.jpg|\.JPG|\.png|\.PNG)/)
    strs.map((item,i)=>{
        if(i%2 == 0){
            arr.push(strs[i-1]+item)
        }
    })
    return arr
}
console.log(a(str))

2.使用replace

function b(str){
    var index = 0,
        arr = [];
    str.replace(/(\.jpg|\.JPG|\.png|\.PNG)/g,(match, p1, i, p3, offset, string)=>{
        arr.push(str.substring(index,i+match.length));
        index = i+match.length;
    })
    return arr
}
console.log(b(str))