鍍金池/ 問(wèn)答/ HTML問(wèn)答
喜歡你 回答

下載好字體資源
app.css加入

@font-face {font-family: "anticon";
  src: url('./static/fonts/iconfont.eot'); /* IE9*/
  src: url('./static/fonts/iconfont.eot#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('./static/fonts/iconfont.woff') format('woff'), /* chrome, firefox */
  url('./static/fonts/iconfont.ttf') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
  url('./static/fonts/iconfont.svg#anticon') format('svg'); /* iOS 4.1- */
}

.anticon {
  font-family:"anticon" !important;
  font-size:16px;
  font-style:normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}

路徑根據(jù)你自己的路徑替換一下就可以了

這樣的話,可以直接reduce people對(duì)象數(shù)組,根據(jù)list中的name獲取相應(yīng)username,然后把list直接指向reduce生成的新username list
額 獻(xiàn)丑一下,因?yàn)樽钚聞倢W(xué)了reduce

let userNames = []
people.reduce((accumulator, currentValue) => {
    if (list.indexOf(currentValue.name) !== -1) {
        accumulator.push(currentValue.username)
    }
    return accumulator
  }, userNames
)
list = userNames

npm init會(huì)初始化你的項(xiàng)目,就是里面什么都沒有,你需要重新下載項(xiàng)目
然后 npm install
再 npm start

默念 回答

你好 請(qǐng)問(wèn)你找到數(shù)據(jù)集了嗎 ,我也在找 方便共享下嗎 郵箱 85932169@qq.com

乞許 回答

因?yàn)関m是一個(gè) Object的引用 類型數(shù)據(jù)啊,vm指向的只是一個(gè)地址引用而已,實(shí)際數(shù)據(jù)都存放在堆中。

如果你的點(diǎn)擊查看速度快過(guò) 機(jī)器運(yùn)行,那么你是可以看到你想看的結(jié)果的。
實(shí)際上,你點(diǎn)擊查看的時(shí)候,根據(jù)引用指向,值早就變了啊

久舊酒 回答
var files = e.clipboardData && e.clipboardData.items;

// 如果只處理一個(gè)文件
var file = files[0];

if (file && file.size > 0 && /image\/\w+/i.test(file.type)) {
   // 類型為圖片, 并且文件大小不為 0
}
青檸 回答

因?yàn)槟愦虻氖怯⑽模虚g沒有空格默認(rèn)算一個(gè)單詞,你得給他加上word-break: break-all;強(qiáng)制換行,不管什么都給你拆開來(lái)

逗婦惱 回答

relative, absolute, fixed 都是定位值, top left right bottom才會(huì)生效; static為沒有定位。

安于心 回答

http://api.jquery.com/val/ 官方文檔中有如下描述信息

When the first element in the collection is a select-multiple (i.e., a select element with the multiple attribute set), .val() returns an array containing the value of each selected option. As of jQuery 3.0, if no options are selected, it returns an empty array; prior to jQuery 3.0, it returns null.

因此下面的代碼可以拿到選中的值

<select id="elem" multiple="multiple">
    <option>...</option>
    ...
</select>
var values = $('#elem').val();
心癌 回答

根據(jù)經(jīng)驗(yàn),除非有特殊的規(guī)定,不能期望所有元素在不同瀏覽器的表現(xiàn)形式是一致的。(在safari中,video按全屏按鈕被畫中畫按鈕取代。)

但一般地,他們底層提供的接口應(yīng)該是一致的。所以你在不同瀏覽器都應(yīng)能通過(guò)相同的接口操作video。

比如可以自我實(shí)現(xiàn)控制音量的按鈕:Html5之a(chǎn)udio音頻和video視頻的控制詳解(controls)

氕氘氚 回答

Math.floor((Math.random()*arr.length)) 具體DOM操作自己弄吧

兔寶寶 回答
http://17koa.com/koa-generato...
.get('/editSelect/:id', user.editSelectData)

async editSelectData (ctx) {
       ctx.params.id;
    }
    比如:http://127.0.0.1:3000/editSelect/id(123)
忠妾 回答

你應(yīng)該找個(gè)上面綁定了modal的 不然不會(huì)出來(lái)的

1、/^[0-9a-z_]{5,20}$/.test(username)

2、/^d{9,32}$|^(?!\d+$)[0-9a-zA-Z]{6,32}$/.test(password)

厭惡我 回答

不用開啟服務(wù)器配置,通過(guò)兩步來(lái)獲取open_id,第一步先通過(guò)appid和secret獲取access_token,第二步用access_token來(lái)獲取open_id。

毀與悔 回答

賦值,為了下面這個(gè),如果用oDiv[i]應(yīng)該是不起作用的

oDiv[this.index]
空痕 回答

這里配置的只是處理scss文件,你看到的dom上的類其實(shí)是在vue里面處理,也就是在組件里處理的,如果vant沒支持css module就是這樣的

放開她 回答

你發(fā)的代碼不太對(duì)吧
你輸出的都是 params 怎么會(huì)在控制臺(tái)輸出 response