鍍金池/ 問答
使勁操 回答

好像很奇怪,我看錯(cuò)了

疚幼 回答
  1. 無法將域名備案到境外服務(wù)器。 阿里提交域名備案時(shí),要求提供的服務(wù)器是境內(nèi)的。 話說回來,使用境外服務(wù)器,域名根本不用備案。
  2. 訪問速度肯定是比不上境內(nèi),但是香港速度不差,ping值境內(nèi)幾毫秒到10幾毫秒,境外波動(dòng)厲害幾十到1百都有可能。
  3. 若按流量收費(fèi),境外服務(wù)器每G會(huì)比國內(nèi)貴。
  4. SEO有些許影響,主要是網(wǎng)頁打開速度方面,個(gè)人的話可以忽略。
  5. 境內(nèi)可以直接訪問,不用翻墻
茍活 回答

原因找到了,是因?yàn)槲以趓ender-header函數(shù)里創(chuàng)建了el-select元素,如果是多選則會(huì)調(diào)用兩次,單選則不會(huì),具體原因不清楚

涼汐 回答

簡(jiǎn)寫方式只是針對(duì) fn(){} => fn: function() {}你寫方式引擎不認(rèn)識(shí)

妖妖 回答

試下下面代碼,改了一點(diǎn)點(diǎn)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
    <title>RunJS 演示代碼</title>
  </head>
<body>
  <div id="helloApp">
        {{test}}
        <button @click="fun1"> te</button>
    </div>  
    
  </body>

<script>
    var helloApp = new Vue({
        el: "#helloApp",
        data: {
            test: "200"
        },
        methods: {
            fun1() {
                this.test = "300"
                this.fun2()
            },
            fun2() {
                alert(this.test)
                this.test = "400"
            }
        }
    })
            

</script>

</html>
        
入她眼 回答

問題一:
FFFE -> BOM -> Byte order mark 字節(jié)序標(biāo)識(shí)
字節(jié)順序標(biāo)記(英語:byte-order mark,BOM)是位于碼點(diǎn)U+FEFF的統(tǒng)一碼字符的名稱。當(dāng)以UTF-16或UTF-32來將UCS/統(tǒng)一碼字符所組成的字符串編碼時(shí),這個(gè)字符被用來標(biāo)示其字節(jié)序。它常被用來當(dāng)做標(biāo)示文件是以UTF-8、UTF-16或UTF-32編碼的記號(hào)。

參見:
字節(jié)順序標(biāo)記

問題二:
是的。
問題三:
讀取時(shí)設(shè)置文件編碼,如:

InputStream input = new FileInputStream("data/text.txt");

    try(InputStreamReader inputStreamReader =
        new InputStreamReader(input,"ISO-8859-1")){
    
        int data = inputStreamReader.read();
        while(data != -1) {
            System.out.print((char) data);
            data = inputStreamReader.read();
        }
        
    }    
孤島 回答

如果以該元素定位的話,pre, last = l[l.index(a) - 1], l[l.index(a) + 1]

愿如初 回答

修改一下padding值

.ant-table-tbody > tr > td {
    padding: 16px 16px;
    word-break: break-word;
}
不歸路 回答

仔細(xì)看官網(wǎng)的例子:

async.everySeries(['file1','file2','file3'], function(filePath, callback) {
    fs.access(filePath, function(err) {   // 你有沒有定義要執(zhí)行的函數(shù)?
        callback(null, !err)   // 有沒有指定回調(diào)函數(shù)?
    });
}, function(err, result) {
    // if result is true then every file exists
});
敢試 回答

我這邊是直接鼠標(biāo)按住一會(huì)兒就可以拖動(dòng)了呀

不過我不確定是不是有改了什么設(shè)置 你先試一下吧

版本 66.0.3359.117(正式版本)
涼薄 回答

操,聲望為-1,估計(jì)也沒人來了,希望這網(wǎng)站快點(diǎn)倒閉吧

憶往昔 回答

已解決,直接render TreeNode的title就行

忘了我 回答

并不知道,并不是在配置文件里…… 即使全局搜索了,也沒發(fā)現(xiàn)這個(gè)東西。

我以為 回答

var myChart = echarts.init(document.getElementById('main'), 'light'); 報(bào)錯(cuò)一般是因?yàn)樵陧撁嫔蠜]有找到id='main'的元素。
異步調(diào)用的時(shí)候,可以這樣操作:
先聲明一個(gè)空數(shù)組var result=[],在option中直接給series寫上data:result。
如:
var option={

...,
series:[
    {
        ...,
        data:result
    }
]

};
待異步調(diào)用結(jié)束時(shí),給result賦值,然后再次執(zhí)行myChart.setOption(option,true);

脾氣硬 回答

clipboard.png
你這里選了 xhr 過濾器, 切換到 all 或者 img.

初念 回答

UglifyJS,一個(gè)插件,很多工具中都會(huì)整合或者提供

荒城 回答

cygwin下安裝openssh-client即可解決這個(gè)問題。

如果喜歡圖形化的操作,也可以用sftp客戶端,基于ssh的ftp,只要開啟了ssh服務(wù)端幾乎0配置。比如xftp, filezilla等客戶端都同時(shí)支持ftp與sftp。

另外scp也是基于ssh協(xié)議,所以你用scp客戶端應(yīng)該也能操作。

最后,長期持續(xù)維護(hù)的項(xiàng)目,持續(xù)集成技術(shù)了解下

笨尐豬 回答

可以試一下流程圖插件
echarts.js d3.js

互擼娃 回答
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<canvas></canvas>
<script>
    window.onload = function () {
        const canvas = document.getElementsByTagName('canvas')[0]
        const ctx = canvas.getContext("2d");
        const w = document.documentElement.clientWidth;
        const h = document.documentElement.clientHeight;
        canvas.width = w;
        canvas.height = h;
        let mols = []
        function  init() {
            let mol = new generate_mol(1)
            mols.push(mol);
        }
        function draw(){
            canvas.width = canvas.width;
            for(var i=0;i<mols.length;i++){
                var m = mols[i];
                m.draw();
            }
        }
        function  generate_mol(mol) {
            this.x = w*0.3;
            this.y = h*0.3;
            // this.vx = Math.random()*-2;
            // this.vy = Math.random()*2;
            // this.vr = 0.1;
            this.r = Math.random()*Math.PI;
            this.draw = function() {
                // ctx.save();
                // ctx.translate(this.x + 20, this.y + 80);
                // ctx.rotate(Math.PI * 0.17);
                // ctx.translate(-this.x + 20, -this.y - 80);
                // ctx.beginPath();
                // ctx.moveTo(this.x, this.y + 30);
                // ctx.lineTo(this.x - 26, this.y + 45);
                // ctx.lineTo(this.x - 26, this.y + 75);
                // ctx.lineTo(this.x, this.y + 90);
                // ctx.lineTo(this.x + 26, this.y + 75);
                // ctx.lineTo(this.x + 26, this.y + 45);
                // ctx.lineTo(this.x, this.y + 30);
                // ctx.moveTo(this.x - 20, this.y + 47);
                // ctx.strokeStyle = "rgba(0,0,0,0.2)";
                // ctx.lineWidth = 3;
                // ctx.stroke();
                // ctx.closePath();
                // ctx.restore()
                ctx.fillStyle = "rgba(0,0,0,0.5)";
                ctx.font = "15px Arial";
                ctx.fillText("A", this.x+40 , this.y+80);

                ctx.save();
                ctx.translate(this.x + 20, this.y + 30);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.fillStyle = "rgba(0,0,0,0.5)";
                ctx.font = "15px Arial";
                ctx.fillText("B", this.x , this.y+70);
                ctx.closePath();
                ctx.restore()

                ctx.save();
                ctx.translate(this.x + 68, this.y + 56);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.closePath();
                ctx.restore()

                ctx.save();
                ctx.translate(this.x + 66, this.y + 110);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.closePath();
                ctx.restore()

                ctx.save();
                ctx.translate(this.x + 20, this.y + 135);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.closePath();
                ctx.restore()
                //
                ctx.save();
                ctx.translate(this.x -27,this.y + 108);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.closePath();
                ctx.restore()

                ctx.save();
                ctx.translate(this.x -26, this.y + 56);
                ctx.rotate(Math.PI * 0.17);
                ctx.translate(-this.x + 20, -this.y - 80);
                ctx.beginPath();
                ctx.moveTo(this.x, this.y + 30);
                ctx.lineTo(this.x - 26, this.y + 45);
                ctx.lineTo(this.x - 26, this.y + 75);
                ctx.lineTo(this.x, this.y + 90);
                ctx.lineTo(this.x + 26, this.y + 75);
                ctx.lineTo(this.x + 26, this.y + 45);
                ctx.lineTo(this.x, this.y + 30);
                ctx.moveTo(this.x - 20, this.y + 47);
                ctx.strokeStyle = "rgba(0,0,0,0.2)";
                ctx.lineWidth = 3;
                ctx.stroke();
                ctx.closePath();
                ctx.restore()
            }
        }
        init()
        draw()
    }
</script>
</body>
</html>

沒畫好 畫偏了
應(yīng)該還要加算法 來生成指定個(gè)數(shù)的
預(yù)覽地址