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

鍍金池/ 問答
小曖昧 回答

iOS 正常退出回調(diào)用 --- - (void)applicationWillTerminate:(UIApplication *)application {

}
方法,崩潰的時(shí)候不知道會調(diào)用什么,求大神繼續(xù)解答?。。?!

好難瘦 回答

只要有接口文檔,前后端約定好,前端需要后端返回什么字段數(shù)據(jù)(xml或json),后端需要前端傳回來什么參數(shù),一切都搞定啦。后端開發(fā)接口,前端調(diào)用,根本不用管后端用什么工具開發(fā),前端用什么工具開發(fā),至于前端看不到效果可以直接用瀏覽器看啊,或者sublime安裝個(gè)插件View In Browser,能夠很方便在sublime中打開瀏覽器看到效果。

野橘 回答

請補(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 倒序其實(shí)就已經(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)
})

此時(shí)遍歷 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())

希望對你有幫助

小曖昧 回答

ECMAScript 1

do
if
in
for
new
try
var
case
else
enum
null
this
true
void
with
break
catch
class
const
false
super
throw
while
delete
export
import
return
switch
typeof
default
extends
finally
continue
debugger
function

ECMAScript 2

do
if
in
for
int
new
try
var
byte
case
char
else
enum
goto
long
null
this
true
void
with
break
catch
class
const
false
final
float
short
super
throw
while
delete
double
export
import
native
public
return
static
switch
throws
typeof
boolean
default
extends
finally
package
private
abstract
continue
debugger
function
volatile
interface
protected
transient
implements
instanceof
synchronized

ECMAScript 3

同 ECMAScript 2

ECMAScript 5

ECMASCript 5 / 5.1刪除了int,byte,char,goto,long,final,float,short,double,native,throws,boolean,abstract,volatile,transient和synchronized。它增加了let和yield。

do
if
in
for
let
new
try
var
case
else
enum
eval
null
this
true
void
with
break
catch
class
const
false
super
throw
while
yield
delete
export
import
public
return
static
switch
typeof
default
extends
finally
package
private

ECMAScript 6

do
if
in
for
let
new
try
var
case
else
enum
eval
null
this
true
void
with
await
break
catch
class
const
false
super
throw
while
yield
delete
export
import
public
return
static
switch
typeof
default
extends
finally
package
private
continue
debugger
function
arguments
interface
protected
implements
instanceof
continue
debugger
function
arguments
interface
protected
implements
instanceof
static
switch
throws
typeof
boolean
default
extends
finally
package
private
abstract
continue
debugger
function
volatile
interface
protected
transient
implements
instanceof
synchronized
吢涼 回答

當(dāng)你以 interface 接受的時(shí)候,你對原來的值就一無所知了,但可以使用反射來獲取它的值。

延用你的寫法可以這樣寫:

//把類似slice的map轉(zhuǎn)為slice
func MapToSlice(input interface{}) []interface{} {
    v := reflect.ValueOf(input)
    keys := v.MapKeys()
    output := []interface{}{}
    for i, l := 0, v.Len(); i < l; i++ {
        output = append(output, v.MapIndex(keys[i]))
    }
    return output
}

但需要注意的是,這里返回的值是 reflect.Value 類型

葬憶 回答

更新

@魔鬼筋肉人 的答案提醒了我,在 Spring Boot - 27.3 JAX-RS and Jersey 小節(jié)中有提到 @Path 注解,但是并未提及它自身的作用,關(guān)于這一點(diǎn)請參考 @魔鬼筋肉人 的答案。

綜合來看,在 Spring Boot 中使用 jax-rs 系列注解是可以得到一定的支持的。

If you prefer the JAX-RS programming model for REST endpoints, you can use one of the available implementations instead of Spring MVC. Jersey 1.x and Apache CXF work quite well out of the box if you register their Servlet or Filter as a @Bean in your application context. Jersey 2.x has some native Spring support, so we also provide auto-configuration support for it in Spring Boot, together with a starter.

你可以在這里查看 Spring Boot 關(guān)于 JAX-RS 的說明。

原答案

我在官網(wǎng)翻來翻去沒看到 @Path,包括 Spring MVCSpring Boot,方便提供一下它所在的包名嗎?

因?yàn)槲矣?IDEA 建了個(gè)默認(rèn) SpringBoot 工程后打這個(gè)注解也是提示找不到。

它會讓我去添加一個(gè) jsonpath 的包,我覺得應(yīng)該不是這個(gè)。

久礙你 回答

分布式一般都有用戶服務(wù)的,使用統(tǒng)一的用戶服務(wù)。
另外,退一步講,就算沒有單獨(dú)的用戶服務(wù),也應(yīng)當(dāng)有統(tǒng)一的用戶session管理,一般都使用redis。
再退一步將,在應(yīng)用服務(wù)器集群中,可以對負(fù)載均衡進(jìn)行指定session粘滯,讓指定session永遠(yuǎn)都訪問一個(gè)后端應(yīng)用。這樣session就不會丟了。

擱淺 回答

錯(cuò)誤信息就是 Error processing ICE candidateICE failed, add a TURN server and see about:webrtc for more details,
獲取 candidate 時(shí)候失敗了,firefox 提示你需要添加 TURN server,看上去像是你ice server 配置有問題,或者是 ice server 服務(wù)有問題。

眼雜 回答

vscode好像對vue并不太友好,包括在vue文件中格式化代碼不生效,css也沒有提示,html也沒有提示

有你在 回答

一般值為nil的時(shí)候?qū)е碌谋罎⒍伎梢圆蹲降?,但是如果?nèi)存問題導(dǎo)致的崩潰,比如內(nèi)存泄漏一直增加的,是沒有的

撥弦 回答

其他代碼,我沒發(fā)現(xiàn)問題,但是你確定video元素標(biāo)簽支持type="rtmp/flv" ,這種視頻流。

兮顏 回答

noticeBtn你試試別用let生命,用var聲明

絯孑氣 回答

<script type="text/javascript" src="https://api.map.baidu.com/api...;ak=*&s=1"></script>

傲寒 回答

DatePicker 包括Range Pickervalue都是moment類型,你的formatDate返回什么類型?

蟲児飛 回答

你試試我這個(gè)想法行不行:

 <template>
    <el-table
      :data="tableData"
      style="width: 100%"
      @click="test">
      <!-這里代碼省略->
    </el-table>
  </template>

  <script>
    export default {
      data() {
        return {
          tableData: []
        }
      },
      methods: {
        test() {
          if(this.tableData.length > 0) { //如果有數(shù)據(jù)則不進(jìn)行任何操作
            return false;
          } else { //沒數(shù)據(jù)彈個(gè)1出來
            window.alert("1");
          }
        }
      }
    }
  </script>
痞性 回答

按照你的需求其實(shí)value的值對你來說沒用
vale.length=children.length遍歷childrenid值按順序放入value

萌小萌 回答

Redis的網(wǎng)絡(luò)模型是一個(gè)單線程Epoll的模型,你可以理解為它是一個(gè)單線程的服務(wù)器,如果你的機(jī)器為24核,那么啟動一個(gè)實(shí)例相當(dāng)于只會占用1核,所以當(dāng)然是會啟動多個(gè)實(shí)例來跑滿CPU。