鍍金池/ 問(wèn)答/ HTML問(wèn)答
挽歌 回答

離開(kāi)頁(yè)面銷毀即可

旖襯 回答

你先在delete這個(gè)zip,然后commit一下,之后再去修改.gitignore試試

小眼睛 回答

先把 li 抽成組件 這個(gè)應(yīng)該不難
第二部 組件通信
1 li組件中$emit一個(gè)事件
2 父組件 on接受事件 觸發(fā)父組件中的方法
3 父組件觸發(fā)的方法中改變傳給ele-input組件的數(shù)據(jù)
這個(gè)是我的思路,也不知道可不可行

撿肥皂 回答
比如
    Page({
        data: {
            arr: ["商品1","商品2",“商品3”]
        }
     })
     this.setData({
         arr: this.data.arr.splice(0,1)
     })
乞許 回答
static/css/index.css

相對(duì)于當(dāng)前目錄計(jì)算
/static/css/index.css
相對(duì)于根目錄算

舊城人 回答

jQuery()

Working With Plain Objects(使用普通的對(duì)象)

目前,只支持包裹在jQuery中的普通的JavaScript對(duì)象是:.data(),.prop(),.bind(), .unbind(),
.trigger() 和 .triggerHandler()。使用.data()(或者任何返回.data()的方法),在一個(gè)普通的對(duì)象會(huì)產(chǎn)生一個(gè)新的屬性的名為jQuery{randomNumber}(如jQuery123456789)。

我覺(jué)得這段翻譯的不太好,不過(guò)下邊那個(gè)Demo應(yīng)該能看明白。

心上人 回答

根據(jù)邊城大神的回答,進(jìn)行調(diào)整,增加了if判斷來(lái)為事件執(zhí)行的順序排序。

不舍棄 回答

debugger時(shí),console當(dāng)前作用域是確實(shí)是函數(shù)內(nèi)部的局部作用域(也是斷點(diǎn)處右鍵evaluate in console可行的原因),因此可以訪問(wèn)name。debugger通過(guò)后,console作用域是全局的,此時(shí)name是window.name瀏覽器自帶的屬性。如果把name改成其他的,就會(huì)報(bào)錯(cuò)了。

可以嘗試下先使用定時(shí)器來(lái)監(jiān)聽(tīng)試試

var loop = setInterval(function() {   
    if(winObj.closed) {  
        clearInterval(loop);  
        alert('closed');  
    }  
}, 1000); 
挽青絲 回答

返回結(jié)果的順序是你 Promise.all(promiseArr) 里面 promiseArr 提供的順序呀
all 的語(yǔ)義就是這樣咯,如果想按單個(gè)請(qǐng)求返回的順序觸發(fā),直接寫兩個(gè)單獨(dú)的 promise 就行,要不用 observable 也行

淺淺 回答

DFS 思路供參考

function matchPath (pathSrc, jsonObj) {
  let bestMatch = ''
  _match(jsonObj)
  return bestMatch

  function _match (list) {
    if (!Array.isArray(list)) { return }
    for (let i = 0; i < list.length; i++) {
      const { path = '', children } = list[i]
      if (path === pathSrc) {
        bestMatch = pathSrc
        return
      }
      if (pathSrc.startsWith(path) && path.length > bestMatch.length) {
        bestMatch = path
      }
      if (children) {
        _match(children)
      }
    }
  }
}
青裙 回答
{
  // `data` is the response that was provided by the server
  data: {},

  // `status` is the HTTP status code from the server response
  status: 200,

  // `statusText` is the HTTP status message from the server response
  statusText: 'OK',

  // `headers` the headers that the server responded with
  // All header names are lower cased
  headers: {},

  // `config` is the config that was provided to `axios` for the request
  config: {},

  // `request` is the request that generated this response
  // It is the last ClientRequest instance in node.js (in redirects)
  // and an XMLHttpRequest instance the browser
  request: {}
}

axios

久礙你 回答

o是生產(chǎn)環(huán)境中壓縮后的變量名
你需要在開(kāi)發(fā)環(huán)境測(cè)一測(cè),看看到底是哪個(gè)變量有問(wèn)題

你好胸 回答

我感覺(jué)你想的復(fù)雜了,直接返回上一層就行了。

history.back();