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

鍍金池/ 問答
雨萌萌 回答

個人用的比較多的 就是無限極分類,pid和id控制,有的時候加一個Path字段

傻丟丟 回答

import {BrowserRouter as Router, Route, Switch} from 'react-router-dom'
改為:
import {HashRouter as Router, Route, Switch} from 'react-router-dom'
可以正常運(yùn)行。
你如果不想訪問到后端,應(yīng)該使用HashRouter

深記你 回答

你把ssh監(jiān)聽在80口嗎?Σ(っ °Д °;)っ
防火墻封掉這個ip,同時推薦fail2ban,配置好后嘗試超過一定次數(shù)就自動ban掉,不過要小心不要把自己封了。
同時你可以給搬瓦工官方發(fā)郵件說明情況,附上日志信息,有可能管用。

PS.放在外網(wǎng)的機(jī)器遇到掃描是很常見的,建議ssh盡量不要監(jiān)聽常用端口,用個1w以上的端口,就清凈了。

野橘 回答

請補(bǔ)充說明期望的結(jié)果(給出例子)

更新

首先,JS 對象中的鍵是不保證順序的

也就是說:

let years = {}
years['2018'] = 'haha'
years['2017'] = 'heihei'
console.log(Object.keys(years)) // 不保證是 ['2018', '2017'],有可能是 ['2017', '2018']
console.log(years) // 不保證是 {2018: 'haha', 2017: 'heihei'},有可能是 {2017: 'heihei', 2018: 'haha'}

在此基礎(chǔ)之上,如果仍要做的話,可以按照以下步驟:

將原數(shù)組按照 year->month 的順序排序

  • 如果 year month 正是 updated_at 中的年月的話,按照 updated_at 倒序其實就已經(jīng)按照 year->month 排好了
  • 如果不是的話,手動排一下:
data.sort(function (d1, d2) => {
  if (d1.year > d2.year) return -1
  if (d1.year < d2.year) return 1
  return (+d2.month) - (+d1.month)
})

此時遍歷 data 即可

let years = {}
data.forEach(function (d) => {
  if (!years[d.year]) years[d.year] = {}
  let thisYear = years[d.year]
  if (!thisYear[d.month]) thisYear[d.month] = []
  thisYear[d.month].push({
    id: d.id,
    updated_at: d.updated_at
  })
})
consol.log(years) // 就是你要的結(jié)果了

整理下代碼:

const result = data
  .sort((d1, d2) => {
    if (d1.year > d2.year) return -1
    if (d1.year < d2.year) return 1
    return (+d2.month) - (+d1.month)
  })
  .reduce((years, {id, year, month, updated_at}) => {
    const thisYear = (years[year] = years[year] || {})
    const thisMonth = (thisYear[month] = thisYear[month] || [])
    thisMonth.push({id, updated_at})
    return acc
  }, {})

如果一定要保證鍵的順序的話,可以使用 Map,它是保證順序的

const result = data
  .sort((d1, d2) => {
    if (d1.year > d2.year) return -1
    if (d1.year < d2.year) return 1
    return (+d2.month) - (+d1.month)
  })
  .reduce((years, {id, year, month, updated_at}) => {
    if (!years.has(year)) years.set(year, new Map())
    const thisYear = years.get(year)
    if (!thisYear.has(month)) thisYear.set(month, [])
    const thisMonth = thisYear.get(month)
    thisMonth.push({id, updated_at})
    return acc
  }, new Map())

希望對你有幫助

莫小染 回答

時間復(fù)雜度是表示時間增長的趨勢啊...

把前后兩部分拆開來看
N! 和 2^n
誰的增速大就是誰

櫻花霓 回答

這是web的基礎(chǔ)知識,放在WEB-INF下面就訪問不到了

失心人 回答

@Controller //使用該注解標(biāo)志它是一個控制器
@RequestMapping(value = "/person")
public class PersonController {

@RequestMapping(value = "/register", method = RequestMethod.POST) 
public Object register(@RequestBody Person person) {
    //todo
    return person;
}

練命 回答

@潘金蓮 @江湖上 謝謝您的回答,看了您的評論后,我檢查了一下我的jdk以及項目的pom.xml文件,找到了問題;問題出現(xiàn)在我本地安裝的jdk版本為1.9,而配置文件中寫的是1.8,所以出現(xiàn)了這些錯誤。(我是新手,請多包涵,嘿嘿。)再次感謝您的回答。

涼心人 回答

select操作不會造成死鎖。我猜測:update語句有大字段更新,導(dǎo)致事務(wù)時間較長(即長事務(wù)),同時,其他select語句引起update操作,當(dāng)update同一條記錄時,就會導(dǎo)致死鎖(等待長事務(wù)的完成)。

兔囡囡 回答

LineSentence類的要求是:

Simple format: one sentence = one line; words already preprocessed and separated by     whitespace

你需要自己簡單預(yù)處理一下。

現(xiàn)在比較流行的是doc2vec,有興趣可以看下:https://segmentfault.com/a/11...

孤酒 回答

你不可以在內(nèi)核模塊中引用 stdio.h,因為它僅用于應(yīng)用程序,它的實現(xiàn)依賴于

  1. GNU libc, https://www.gnu.org/software/...
  2. 或 musl libc, https://www.musl-libc.org/

等第三方庫。

誮惜顏 回答

哈哈哈,今天無意中找到解決辦法了
是php的路徑問題,比如我的php.exe的路徑是D:wampbinphpphp7.0.23\
test.php的文件編碼是utf-8
git bash的終端編碼也已經(jīng)設(shè)置成utf-8
在git bash中使用 /D/wamp/bin/php/php7.0.23/php ./test.php 就能正常輸出中文了
所以解決的步驟就是:
1.vim ~/.bashrc
2.

export LANG=en_US.utf-8
export PATH="$PATH:/D/wamp/bin/php/php7.0.23"

3.source ~/.bashrc
至于為什么路徑的問題會造成亂碼就不清楚了

舊酒館 回答

先別急著考慮針對不同版本的兼容問題,Chromium 49來說,常規(guī)的padding,margin樣式肯定沒什么兼容性問題的,你應(yīng)該先看下自己的CSS代碼,是不是規(guī)范的寫法

貓館 回答

在網(wǎng)頁端或node端,自己封裝一下
插件沒有實現(xiàn)這個功能..等升級吧

離夢 回答

查詢 line_id 等于20, 且文章cid=6, 并且排除line_id=21這個需求你自己不覺得矛盾嗎? 既然已經(jīng)過濾只有 line_id=20, 那么結(jié)果集還需要排除line_id=21?

你的真實需求是不是 查詢 line_id 等于20但是不等于21的所有文章?

這個場景使用Exists語句

SELECT a.*
FROM article a
WHERE 
  EXISTS(SELECT al.article_id
             FROM article_line al
             WHERE al.line_id = 20 AND al.article_id = a.id)
  AND NOT EXISTS(
    SELECT al.article_id
    FROM article_line al
    WHERE al.line_id = 21 AND al.article_id = a.id)
  )
殘淚 回答

我也碰到相同的問題, 幫頂下

夏木 回答

正則匹配全局后 lastIndex會加1,下一次匹配會變成從第二位開始,而你test里面只有1位,所以匹配失敗,匹配失敗后lastIndex會變成0,再下一次匹配從第一位開始,匹配成功.....
要么去掉/g,要么手動把reg.lastIndex=0

舊言 回答

控制文本全大寫用text-transform:uppercase;唄。

夢一場 回答

三個項目通過url來跳轉(zhuǎn)就可以了,可以放在一個共同的域名下面,公用一個登錄系統(tǒng)