鍍金池/ 問答/ HTML問答
只愛你 回答

是不是 /error 的路由死循環(huán)了,沒有判斷去/error的時候直接next 釋放掉呢

逗婦惱 回答

ModalComponent構(gòu)造參數(shù)中要寫修飾符如publicprivate、readonly等等。這樣才會自動構(gòu)造屬性并創(chuàng)建。

constructor(
      public options: ModalOptions
) {
    console.log(options);
}
風清揚 回答

你將路由轉(zhuǎn)成哈希路由再試一下?也就是localhost:8080/#/login

念初 回答

對你的需求描述不太清楚。另外,上面代碼可以用jsx寫一下,起碼會簡潔些,更好些業(yè)務(wù)。

尋仙 回答

配置好后,重啟 nginx 服務(wù)了嗎?

陌南塵 回答

后臺出一個“代理”,然后用 https://代理?url=訪問的URL,然后通過服務(wù)器端進行轉(zhuǎn)發(fā)請求。(類似在線翻譯網(wǎng)頁的功能)
把取回來的HTML內(nèi)容 追加到當前DOM

純妹 回答

你的要求是?
1、獲取到 table 最后兩個 td 的值。
2、將這兩個值保存在粘貼板中,以便復(fù)制。

<table border="1">
  <tr>
    <td>123</td>
    <td>111</td>
  </tr>
  <tr>
    <td>123</td>
    <td>111</td>
  </tr>
  <tr>
    <td>222</td>
    <td>333</td>
  </tr>
</table>
<input type="button" value="復(fù)制" onclick="copy()" />

<br />
<p>點擊復(fù)制后在下邊 textarea 中 CTRL+V 看一下</p>
<textarea cols="30" rows="10"></textarea>

<script>
  function copy() {
    let values = [...document.querySelectorAll('table tr:last-child td')].map(t => t.innerHTML);
    /* 相當這樣:
    var values = [];
    var tds = document.querySelectorAll('table tr:last-child td');
    for (var i=0; i< tds.length; i++) {
      values.push(tds[i].value);
    }
    */
    let input = document.createElement('input');
    document.body.appendChild(input);
    input.value = values.join('+');
    input.focus();
    input.setSelectionRange(0, input.value.length);
    document.execCommand('copy', true);
    document.body.removeChild(input);
  }
</script>
卟乖 回答

服務(wù)器路由沒部署好,單頁面的項目,服務(wù)器將所有地址指向同一個頁面的,讓vue-router來處理當前頁面該展示什么的

忠妾 回答

js一般沒有讀取設(shè)備信息的權(quán)限的,讓客戶端獲取是最好的

吢涼 回答
return colorList[params.dataIndex];
替換成
return colorList[params.dataIndex % colorList.length];

網(wǎng)格線顏色

yAxis : {
            splitLine:{
                lineStyle:{
                    color: ['#123']
                }
           },
           ...你的配置
}
菊外人 回答

i--是不是應(yīng)該改為iul--呢?

祉小皓 回答

request和response是http生命周期中的東西,相當于輸入輸出,你可以這樣的思維去應(yīng)用,將php輸入變量到request,如常見的超全局變量_GET,_POST,_SERVER。

柒槿年 回答

react里面的事件里面onClick={()=>{}}最好還是使用箭頭函數(shù);為什么click你使用bind.this,但是keydown切不使用?onKeydown={(e)=>{this.handleKeydown(e);}};這個問題應(yīng)該打個斷點調(diào)試下很快就出結(jié)果了。

html5的websocket api是前端處理websocket請求和響應(yīng)的,本身沒有服務(wù)構(gòu)建功能,不需要設(shè)置證書。
簡單地說,html5通過websocket協(xié)議和后端交互,但是html5本身是沒有websocket的,那個只是使用websocket的接口,不是websocket本身。
而node的websocket,指的是構(gòu)建服務(wù)

念舊 回答

clipboard.png

<div class="father">
    <div class="mouth"></div>
</div>
.father{
    height: 50px;
    width: 100px;
    overflow: hidden;
}
.mouth {
     border-radius: 100px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    background-color: black;
    width: 100px;
    height: 100px;
}
陪我終 回答

自己搗鼓了一下,總算是弄好了,姑且把過程記錄下來:
-------->以下內(nèi)容僅供參考<----------
修改完nginx.conf文件后,命令行檢測一下格式是否正確,如下:

/usr/local/nginx/sbin/nginx -t -c /usr/local/nginx/conf/nginx.conf

提示successful表示成功,這時就需要重啟下nginx,自己試了好多重啟方法,但都失敗了(我太菜了··),
最后直接強制關(guān)閉:

pkill -9 nginx 

然后開啟:

/usr/local/nginx/sbin/nginx

這就成功了

別瞎鬧 回答

<template>

<order-btn :status="status"></order-btn>

</template>

<script>

import Vue from 'vue'
Vue.component('order-btn', {
  render:function(createElement){
      let self = this
        return createElement(
            'div',
            {
                on:{click:function(){
                    console.log('success')
                }},
            },
            self.order2Operate(self.status)
            )
    },
    props:{
        status
    },
    methods:{
        order2Operate(status){
            switch(status){
                case 1:
                    return "待付款"
                    break;
                case 2:
                    return "待成團"
                    break;
                case 3:
                    return "待發(fā)貨"
                    break;
                case 4:
                    return "待收貨"
                    break;
                case 5:
                    return "待評價"
                    break;
                default:
                    return "***"
            }
        }
    }
})

export default{
    data(){
        return{
            statue:[1,2,3,4,5]
        } 
    }
}

</script>