鍍金池/ 問答/ HTML問答

popperjs 依賴bootstrap 就像bootstrap依賴 JQ一樣,shim在加上一個(gè)依賴配置

雅痞 回答

你把這個(gè)通用方法寫成service就行了

痞性 回答

class肯定可以被引用多次的,在入口文件導(dǎo)入兩個(gè)模塊。

import './UserService'
import './TestService'

兩個(gè)都有輸出,如下所示。
clipboard.png

女流氓 回答

刷新?

你是這么操作的嗎?

let demoEl = document.getELementById('demo');
demoEl.src = ''; // 清空
demoEl.src = 'baidu.com'; // 賦值?

我建議這么寫:

demoEl.contentWindow.location.reload();
雨蝶 回答

你說的這個(gè)箭頭應(yīng)該是返回上一級(jí)吧

我不懂 回答

table組件是有這個(gè)問題,應(yīng)該是個(gè)bug

呆萌傻 回答

你好,我現(xiàn)在遇到了和你同樣的問題,請(qǐng)問你的問題解決了嗎,解決了麻煩幫我解決下謝謝了 扣扣 1098769943

憶往昔 回答

在輸入框聚焦的時(shí)候,你可以監(jiān)聽鍵盤事件,如果有按鍵盤 那就不讓他處理

半心人 回答

服務(wù)開啟開啟了沒;感覺是鏈接錯(cuò)誤啊,不能添加 --auth;

夕顏 回答

input頁面加載后調(diào)用驗(yàn)證

this.$refs.TrafModeObj.validateField("chkTrafModeObj");
熊出沒 回答

github關(guān)鍵詞 cilpboard

入她眼 回答

emmm...哪里出現(xiàn)了2^n??...

WebServices、WCF、Web API都可以,推薦后兩個(gè),Web API的結(jié)構(gòu)和MVC很像

胭脂淚 回答

$('#actNum2')下再嵌套一層divwrap

    <div id="actNum2" class="mes-con">
        <div class="wrap">
            <p><label class="one">1</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p>
            <p><label class="one">2</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p> 
            <p><label class="one">3</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p> 
            <p><label class="one">4</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p>
            <p><label class="one">4</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p>
            <p><label class="one">4</label>人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華人民中華</p>
        </div>
    </div>

同時(shí)修改樣式

.mes-con{
    width: 500px;
    height:200px;
    border:1px solid grey;
    margin:30px auto;
    overflow: hidden;
    position:relative;/*修改點(diǎn)*/
}
.wrap{
    position:absolute; /*修改點(diǎn)*/
}

最后修改js

    function goHelpTirm(){
        var TirmLength=$('#actNum2').find('p').length;
        console.log(TirmLength);
        var num=0;              
        setInterval(function(){  
            num++;  
            if(num > TirmLength){ 
                num=0;  
                $('.wrap').css({'top':'0'});   /*修改點(diǎn)*/
                num=1;  
            }  
            $('.wrap').stop().animate({top:-20*num+'px'});  /*修改點(diǎn)*/
        },1000);  
    }
    goHelpTirm();

原理是最外層固定寬高,超出隱藏,通過設(shè)置內(nèi)層div的top值實(shí)現(xiàn)其無縫滾動(dòng)

離魂曲 回答

假設(shè)待比較數(shù)組str長(zhǎng)度為5;

  1. 求str[0],str[1]的最長(zhǎng)公共子串lcs;

  2. 循環(huán)求lcs與str[i]的最大公共子串lcs

  3. if(lcs.length > 0) return true else return false;

function LCSFunc(str1, str2){
    //...
}
let lcs = LCSFunc(str[0],str[1]);
for(let i=2; i<str.length; i++){
    lcs = LCSFunc(lcs, str[i])
    if(lcs.length > 0) return true else return false;

}
亮瞎她 回答

哈哈...頭發(fā)掉光了再回答你!

location /api/ {
            proxy_pass https://localhost:3010;
         }

注意location后面寫成/api//api是不一樣的(特別注意哦),你的node啟動(dòng)了服務(wù),例如是8080的端口, nginx代理直接代理過去就好了,如果你想把/blog代理不需要加后面的斜杠哦,而且域名訪問的時(shí)候應(yīng)該是https://www.xxx.com/blog即可,另外root的路徑指向,應(yīng)該從根目錄開始哦

凹凸曼 回答

chrome是好的,真機(jī)不行,有用別的手機(jī)或者手機(jī)瀏覽器換一個(gè)試試嗎?我倒是遇到過fixed定位再ios下的問題,你這個(gè)我估計(jì)還得看代碼才能解決,

愛礙唉 回答

1.通過地址欄參數(shù)傳遞
2.通過localstorage,sessionStorage等技術(shù)
跳轉(zhuǎn)前記得攜帶參數(shù)就行了

//https://mail.qq.com/cgi-bin/frame_html?sid=EJs87usyg4jSZy51&t=newwin_frame&url=%2fcgi-bin%2freadmail%3fmailid%3dZC1927-zkXnZWC5bWY8MnsgobyyP87%26need_textcontent%3dtrue%26s%3dnotify%26newwin%3Dtrue%26t%3dreadmail&r=9f2c2de4f4d1a5acaa0109db8fadf7cd

function getQueryString(name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = window.location.search.substr(1).match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}

getQueryString('sid')
"EJs87usyg4jSZy51"

圖片描述