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

鍍金池/ 問答/ HTML問答
抱緊我 回答

Fork element-ui
修改完element-ui后需要把編譯打包后的lib文件也提交上去,每次修改都需要打包
npm i git+ssh://url 或者 npm i git+https://url

只愛你 回答

剛才試了下官方的例子,沒有你描述的問題。應(yīng)該是你使用的問題。

入她眼 回答

嗨,這個跟偽類和偽元素沒有關(guān)系,counter-increment 跟其它 CSS 屬性一樣都是遵循層疊原則,瀏覽器根據(jù)這些原則生成 CSSOM 樹。counter() 只不過是說“我這里需要得到某個 counter 的層疊結(jié)果”而已。不必想象成 JS 而應(yīng)該跟其它 CSS 屬性一樣思考。

<body style="color: red; font-size: 12px;">
    <span style="color: blue">Text</span>
</body>

那么 span 得到的層疊結(jié)果是


span {
??color: blue;
}

body {
??color: red;
??font-size: 12px;
}

同樣,當(dāng)使用 counter() 的時候,也是這么層疊收集來得到結(jié)果。所以當(dāng)層疊下來沒有 counter-increment 的時候,自然就不會被收集到。

抱緊我 回答

你watch了hash,然后又改變hash,不會進(jìn)入死循環(huán)嗎

尐潴豬 回答

可以使用遞歸算法實現(xiàn)這種結(jié)構(gòu)類似,無限深度的數(shù)據(jù)結(jié)構(gòu)
個人覺得遞歸算法的比較經(jīng)典的講解
遞歸算法

九年囚 回答

貼一下我在寫 vue 時候的 vscode 的配置過程,ESlint 是建議的

1. 需插件安裝

  • Vetur : 語法高亮等功能
  • ESlint : 代碼風(fēng)格檢測
  • Prettier formatter for Visual Studio Code: 為了配合 ESlint

2. 插件設(shè)置

  • vue 的模板格式化:
    "vetur.format.defaultFormatter.html":"js-beautify-html"
  • vue 模板的 eslint 校驗
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "html",
        "vue",
        {
            "language": "html",
            "autoFix": true
        }
    ]
  • Prettier 設(shè)置去除不必要空格:"prettier.semi": false
  • Prettier 設(shè)置格式化后"'"prettier.singleQuote": true
  • 在 vscode 中排除 node_modules 等文件夾:
"files.exclude": {
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/CVS": true,
    "**/.DS_Store": true,
    "**/node_modules": true,
    "**/package-lock.json": true,
},
  • 以新行結(jié)束

"html.format.endWithNewline": false

完整的 vue 相關(guān)用戶設(shè)置如下

"files.exclude": {
    "**/.git": true,
    "**/.svn": true,
    "**/.hg": true,
    "**/CVS": true,
    "**/.DS_Store": true,
    "**/node_modules": true,
    "**/package-lock.json": true
},
"vetur.format.defaultFormatter.html": "js-beautify-html",
"editor.formatOnSave": true,
"prettier.semi": false,
"prettier.singleQuote": true,
"html.format.endWithNewline": true,
"eslint.validate": [
    "javascript",
    "javascriptreact",
    "html",
    "vue",
    {
        "language": "html",
        "autoFix": true
    }
]
骨殘心 回答

這需求改的和之前差的很大哦...
這個答案是應(yīng)之前的需求:返回所有admin,并且刪除childrenadmin。

getRoles(getData());

function getRoles(data, role = 'admin') {
  let resArr = [];

  main(data);

  return resArr;

  function main(data) {
    if (data && data.length) {
      data.forEach((d, i) => {
        if (d.role === 'admin') resArr.push(data.splice(i, 1));
        if (d.children && d.children.length) main(d.children);
      });
    }
  }
}

function getData() {
  return [{
    role: 'other',
    children: [{
      role: 'admin',
      index: '1'
    }, {
      role: 'other'
    }]
  },{
    role: 'admin',
    index: '2',
    children: [{
      role: 'other',
      children: [{
        role: 'admin',
        index: '3'
      }]
    }]
  }];
}
焚音 回答

定時器 setInterval

setInterval() 方法重復(fù)調(diào)用一個函數(shù)或執(zhí)行一個代碼段,在每次調(diào)用之間具有固定的時間延遲。
返回一個 intervalID。
setInterval(function () {
    var date1 = '2016/05/03 00:00:00';
    var date2 = new Date();
    var date3 = date2.getTime() - new Date(date1).getTime();
    var days = Math.floor(date3 / (24 * 3600 * 1000));
    var leave1 = date3 % (24 * 3600 * 1000);
    var hours = Math.floor(leave1 / (3600 * 1000));
    var leave2 = leave1 % (3600 * 1000);
    var minutes = Math.floor(leave2 / (60 * 1000));
    var leave3 = leave2 % (60 * 1000);
    var seconds = Math.round(leave3 / 1000);
    console.log(" 相差 " + days + "天 " + hours + "小時 " + minutes + " 分鐘" + seconds + " 秒");
}, 1000)
女流氓 回答
<textarea placeholder="說點什么......" autofocus="autofocus"></textarea>

網(wǎng)上找的,你試試行不,給個回復(fù)

葬愛 回答

進(jìn)容器看看服務(wù)起來了沒,有沒有跑在8080上

你所說的加載失敗是下載失敗吧, 提示的錯誤是什么

亮瞎她 回答

把這個問題向前占個位置,我想知道這個問題的 Python 解決方法。

浪婳 回答
  • 舊項目已經(jīng)使用了80端口 而新的node項目啟用的端口是3000,訪問的方式該是 http://ip:3000/getat
  • 如果希望 http://112.74.191.12/getat 這樣的形式去訪問 可使用nginx 根據(jù)location進(jìn)行代理轉(zhuǎn)發(fā)
  1. 舊的項目放棄80端口,將nginx作為80端口,因為80端口只能有一個。
  2. 舊的項目啟用新的端口,通過nginx端口配置,訪問nginx時會轉(zhuǎn)發(fā)到舊項目上
  3. 新的node項目 再根據(jù)location進(jìn)行代理轉(zhuǎn)發(fā)

location配置:
location /getat {

    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://127.0.0.1:3000;

}

尋仙 回答
  • 同源的話把CORS關(guān)掉。默認(rèn)應(yīng)該就是關(guān)的,xhr參數(shù)不對?
  • 不同源的話把不安全的請求頭刪掉:https://fetch.spec.whatwg.org...
  • 一定要帶著請求頭的話,把Access-Control-Max-Age設(shè)高點,提前緩存好OPTIONS,后續(xù)就不用了。

https://developer.mozilla.org...

爛人 回答

不可以,因為js基于安全性的考慮,是不可能讀寫本地文件的。

筱饞貓 回答

ECMAScript 3規(guī)范 - 10.1.3 Variable Instantiation

for each formal parameter(注:形參), as defined in the FormalParameterList, create a property of the variable object whose name is the Identifier and whose attributes are determined by the type of code.

然而這是 ES3 的規(guī)范,ES5+ 用的不是這一套了好像。
ECMAScript 5規(guī)范 10.6、10.4.3、13.2.1 應(yīng)該是這三塊,然鵝我看不太懂。。。

落殤 回答

你可以試試阿里云的OSS服務(wù),我一般都是把大資源扔到OSS上這樣自己的服務(wù)器壓力會減小不少