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

鍍金池/ 問(wèn)答/ Java問(wèn)答

1.遍歷arr,每個(gè)都取出id和name組成新的對(duì)象push進(jìn)去newArr

2.如果arr中的對(duì)象里childern存在著值,也把值的id和name取出來(lái)形成一個(gè)新的對(duì)象push進(jìn)newArr

伐木累 回答

目前現(xiàn)有的權(quán)限框架(比如shiro, spring security等等)都支持角色的概念,在你的角色中指定這個(gè)權(quán)限即可。角色權(quán)限是你自己通過(guò)代碼判斷的,你可以把select和update封裝成兩個(gè)方法,不同的角色只能調(diào)用有權(quán)限的那個(gè)方法即可。

因?yàn)槟愕恼齽t表達(dá)式中含有', 而這偏偏是搜狗中文輸入法打字上屏的關(guān)鍵,去掉這個(gè)字符過(guò)濾就應(yīng)該好了。

如果堅(jiān)持想要一起過(guò)濾這個(gè)', 建議你再增加一個(gè)on change事件,其中replace掉這個(gè)符號(hào),change事件會(huì)在用戶焦點(diǎn)離開(kāi)輸入框后觸發(fā)執(zhí)行。

失魂人 回答

01-26-2018(dd日-MM月-yyyy年)
格式化就變
01-02-2020了

祈歡 回答

這就是「書簽」。方便代碼間跳轉(zhuǎn)。

如何使用:Ctrl+Shift+Num 定義書簽,再次按這組快捷鍵則是刪除書簽。然后通過(guò) Ctrl+Num 跳轉(zhuǎn)。比使用「上/下一編輯位置」(Ctrl+Left/Right)來(lái)回跳轉(zhuǎn)要快捷。

兔囡囡 回答

報(bào)錯(cuò)信息中提示是37行有問(wèn)題,我數(shù)了下是下面這行

reader = new InputStreamReader(new FileInputStream(fileName));
我看到你兩次初始化reader,我想是不是跟這個(gè)有關(guān)系

純妹 回答

不明白為什么不直接

 this.inputResult()

,要多此一舉去靠button的事件觸發(fā)呢

— asseek · 5 天前
回復(fù) asseek:
@asseek?好像是腦袋短路了,。。。。。。。。

— coder94 · 5 天前


this.$refs.inputResult.$emit('click')


這樣好像解決了
妖妖 回答

先去看看js 數(shù)組,對(duì)象概念,然后看懂element ui tree的文檔或許你就明白一點(diǎn)了。

離殤 回答

Sometimes people here are not as they could be...

For whatever reason, your php.ini is mis-configured.

One thing to note that all those missing files are actually Windows files (.dll) on Linux these would likely be .so files. I'm assuming your hosting on a Linux server.

First find your php.ini file. If you have command line access via SSH, you can try running:

php --ini
if not you make a simple script, call it test.php like so:

<?php
phpinfo();
?>
Upload the file and run it, something like:

http://www.yoursite.com/test.php

Among the information provided will be the path to php.ini

Once you find it, one option is to edit it and comment out all those extensions, by putting a ";" in front of the line.

Another option is to check if the *.so files exist. Look for them under /usr/lib/php. If they exist, edit your php.ini file to have all those extension end in .so instead of .dll

Finally, if they don't exist, you could install them by using apt-get or yum. An example:

sudo apt-get install php-mbstring

hello.java也得對(duì)應(yīng)包名按正確的目錄保存

因?yàn)槟阌袚Q行符 .只匹配所有非換行字符 [.\S\s]* 匹配所有

圖片描述

小曖昧 回答

個(gè)人推薦保存到日志文件中,日志量大,你每次保存數(shù)據(jù)庫(kù)會(huì)增加數(shù)據(jù)庫(kù)的寫負(fù)擔(dān),而且放在日志文件中,后期可以做類似Logstash應(yīng)用來(lái)做日志采集,進(jìn)行數(shù)據(jù)可視化分析,這個(gè)時(shí)候就不用擔(dān)心多余的數(shù)據(jù)庫(kù)讀負(fù)擔(dān),畢竟數(shù)據(jù)庫(kù)的讀寫資源是非常重要的。

孤島 回答

應(yīng)該說(shuō)這幾個(gè)概念上都不太一樣, 簡(jiǎn)單地說(shuō):沒(méi)有什么關(guān)系.

free下的輸出是操作系統(tǒng)當(dāng)前的狀態(tài), 全部進(jìn)程內(nèi)存使用情況的累加:

total:表示物理內(nèi)存總量(total = used + free)
used:表示總計(jì)分配給緩存(包含buffers 與cache )使用的數(shù)量,但其中可能部分緩存并未實(shí)際使用。
free:未被分配的內(nèi)存。
shared:共享內(nèi)存,主要用于tmpfs。
buffers:系統(tǒng)分配但未被使用的buffers 數(shù)量。
cached:系統(tǒng)分配但未被使用的cache 數(shù)量。

top分別列出每個(gè)進(jìn)行的使用情況:

VIRT 意味著進(jìn)程虛擬空間的大小, 是真實(shí)使用的內(nèi)存,加上映射進(jìn)程自己使用的內(nèi)存(如, X server使用顯卡內(nèi)存), 加上映射磁盤文件使用的內(nèi)存(主要是加載共享程序庫(kù)文件), 加上與其他進(jìn)程共享的內(nèi)存. VIRT代表進(jìn)程當(dāng)前時(shí)刻有多少內(nèi)存可以訪問(wèn).

RES 意味駐留內(nèi)存大小, 是當(dāng)前進(jìn)程真正占用物理內(nèi)存的精確反映. (直接與%MEM列相對(duì)應(yīng).) RES始終要比VIRT小, 因?yàn)槎鄶?shù)程序依賴C庫(kù)文件.

SHR 表示VIRT里有多少其實(shí)是共享部分(庫(kù)文件使用的內(nèi)存). 關(guān)系到庫(kù)文件里, 并不是整個(gè)的庫(kù)文件會(huì)駐留. 如, 如果程序僅用到了庫(kù)文件里的少數(shù)函數(shù), 整個(gè)庫(kù)文件會(huì)映射并被計(jì)算到VIRT和SHR里, 但只有庫(kù)文件包含用到的函數(shù)那部分真正加載到內(nèi)存并被計(jì)算到RES里.

至于java的native memory space,只是java進(jìn)程的內(nèi)部分配關(guān)系.
參見(jiàn)下圖

java-heap

陌上花 回答

if(/s/.test(str)){

alert('包含空格');

}else{

alert('不包含空格');

}

安若晴 回答

原因可能有

  • 項(xiàng)目或依賴jar包里有重復(fù)的log4j配置文件
  • appenders里面沒(méi)有添加log4j文件
  • appenders里面有,但是有多個(gè)log4j配置文件,然后沖突了
近義詞 回答

Service調(diào)用其他ORM層怎么了,要不分層還有什么意義,直接去掉Service不行了

清夢(mèng) 回答
  1. hadoop Map過(guò)程修改需要重新打包(過(guò)程中沒(méi)法輸出)
  2. main函數(shù)不需要重新打包
  3. 調(diào)試的話可以試試MRUnit
魚梓 回答
let getTickets = (userId) => {
    let sql = util.format('select ticketId,number from ticket_Numbers where userId="%s"', userId);
    return db.query(sql);
}
exports.myTickets = function (userId, cb) {
    getTickets(userId).then(async (data) => {
        let tickets = data.rows;
        for (let ticket of tickets) {
            await db.query(util.format('select userId,number from ticket_numbers where ticketId="%s"', ticket.ticketId))
                .then((players) => {
                    ticket.players = players.rows
                });
        }
        cb({ success: true, tickets: tickets });
    });
}

搞定了