鍍金池/ 問答
別傷我 回答

樓主這個問題解決了沒?最近也遇到這個問題了。

心悲涼 回答

1.在其他瀏覽器比如chrome里看看請求返回的信息對不對
2.猜測很大原因是因?yàn)榭缬蛄耍O(shè)置一下請求頭

笑忘初 回答

可能是依賴沖突?

陪妳哭 回答

剛剛做過和你這個差不多的。。。

未選擇的按鈕class為detail-btn,選擇后class為detail-btn detail-selected
html:

<div class="detail-btn" @click="chooseOrder($event)"></div> 

css:

.detail-btn{
    width: .43rem;
    height: .45rem;
    background: url(../images/list-no.png) no-repeat;
    background-size: 98%;
}
.detail-selected{
    background: url(../images/list-select.png) no-repeat;
    background-size: 98%;
}

js:

                chooseOrder:function(e){
                        if (e.target.className.indexOf("detail-selected") == -1) {
                            e.target.className = "detail-btn detail-selected"; //切換按鈕樣式
                           //寫邏輯
                        } else {
                            e.target.className = "detail-btn";//切換按鈕樣式
                           //寫邏輯
                        }
                 },
殘淚 回答

一樓正解,字符串沒有減去的概念,可以是替換為空字符串。

熟稔 回答

大佬,你的display:flex被你吃了?

.flexItemLast {
    display: flex;
}
貓小柒 回答

openid是用戶對于公眾號的唯一標(biāo)識,這玩意需要登陸授權(quán)的,
建議你看下這個微信網(wǎng)絡(luò)授權(quán)

菊外人 回答
// 1、定義這兩個函數(shù)
function touchEventToMouseEvent(event, eventType) {
        if (!event.originalEvent || !event.originalEvent.targetTouches || event.originalEvent.targetTouches.length != 1)
            return false;
        var te = event.originalEvent.targetTouches[0];
        var clientX = te.clientX, clientY = te.clientY, screenX = te.screenX, screenY = te.screenY;

        var simEvent = new MouseEvent(eventType, {
            clientX: clientX,
            clientY: clientY,
            screenX: screenX,
            screenY: screenY,
            button: 0,
            buttons: 0
        });
        return simEvent;
    }
    
function findElm(targetElement) {
        targetElement.on('touchstart', function (e) {
            console.log('touchstart');
            console.log(e);
            var simEvent = touchEventToMouseEvent(e, 'mousedown');
            if (simEvent != null) {
                $(this)[0].dispatchEvent(simEvent);
            }
        });

        targetElement.on('touchmove', function (e) {
            e.preventDefault();
            console.log('touchmove');
            var simEvent = touchEventToMouseEvent(e, 'mousemove');
            if (simEvent != null) {
                $(this)[0].dispatchEvent(simEvent);
            }
        });

        targetElement.on('touchend', function (e) {
            console.log('touchend');
            console.log(e);
            var simEvent = touchEventToMouseEvent(e, 'mouseup');
            if (simEvent != null) {
                $(this)[0].dispatchEvent(simEvent);
            }
        });
}
   
// 2、執(zhí)行 findElm(selectorElement) 即可將移動端的touch
findElm(selectorElement); 
    
扯不斷 回答

你看看你頁面是不是用了submit和form標(biāo)簽。

落殤 回答

思路:獲取input的輸入內(nèi)容,然后調(diào)用下面的函數(shù),把內(nèi)容作為文本下載

關(guān)鍵代碼:

    // fileName 是文件名,可以自定義,如 abc.txt
    // content 是input輸入的內(nèi)容
    createAndDownloadFile=function(fileName, content) {
        const aTag = document.createElement('a');
        const blob = new Blob([content]);
        aTag.download = fileName;
        aTag.href = URL.createObjectURL(blob);
        aTag.click();
        URL.revokeObjectURL(aTag.href);
    }
毀憶 回答

http://localhost:3000/index.php?m=index&a=home#/

m=index&a=home 這個是get請求的參數(shù)吧,帶不帶應(yīng)該無所謂。

如果是后臺需要你在訪問這兩個頁面的時(shí)候傳入這個,我覺的這是后臺設(shè)計(jì)上的問題

http://localhost:3000這場這個形式可以,是因?yàn)槟阍L問這個網(wǎng)址,會默認(rèn)把當(dāng)前網(wǎng)址下面的index.html返回給你。

而php應(yīng)該只需要配置一下就好了。

殘淚 回答

估計(jì)是無窮遞歸了, 查查調(diào)用棧

舊酒館 回答

只要在本地測試成功,commit,push之后,鉤子自動同步到服務(wù)器,不能直接修改服務(wù)器上的文件,否則協(xié)同開發(fā)豈不是亂套了。

我嘗試寫了一下,你看一下對不對

ip=$1
mask=$2
out=''
for index in {1..4}; do
    si=$(echo $ip | cut -d "." -f $index)
    sm=$(echo $mask | cut -d "." -f $index)
    if [ $index -ne 1 ]
    then
        out="$out."
    fi
    out="$out$[$si&$sm]"
done
echo $out