鍍金池/ 問(wèn)答/ 網(wǎng)絡(luò)安全問(wèn)答
墨染殤 回答

http://www.it1352.com/341638....

這是一個(gè)瀏覽器認(rèn)為的優(yōu)化的。解決方案是Web Workers?處理這些數(shù)據(jù)

你的瞳 回答

get("hotkw")可能用的是異步的形式 flag的值還沒(méi)有被重新賦值

你可以測(cè)試一下 里面打印個(gè)1 外面打印個(gè)2 看誰(shuí)先打印

萌面人 回答

301吧,在seo方面還可以帶權(quán)重過(guò)去。

別硬撐 回答

自己解決了哦,去掉$is_args$args就好了,因?yàn)閞ewrite重寫的是$uri:

location ~ ^/(test|admin) {
    rewrite ^(.*) $uri.php;
}

真是不仔細(xì)看文檔

Syntax:    rewrite regex replacement [flag];
Default:    —
Context:    server, location, if
If the specified regular expression matches a request URI, URI is
changed as specified in the replacement string. The rewrite directives
are executed sequentially in order of their appearance in the
configuration file.
鹿惑 回答

同步I/O操作,雖然是保存在磁盤中 但是這個(gè)讀寫好像并不怎么影響性能 有的瀏覽器會(huì)把localStorage的操作暫時(shí)保存在內(nèi)存中 等你關(guān)了它 它再讀寫磁盤 所以你在這期間對(duì)localStorage操作 跟保存成變量應(yīng)該沒(méi)有啥區(qū)別

尐潴豬 回答

redux的原則之一就是單一事實(shí)來(lái)源,就是說(shuō)所有的數(shù)據(jù)來(lái)源只有一個(gè),來(lái)自store. rxjs我覺(jué)得做得工作是action的工作和reducer的部分工作。 但是又不完全是,rxjs的工具實(shí)在是太強(qiáng)大了??梢钥紤]把rxjs和redux結(jié)合起來(lái)。redux也是flux構(gòu)架的實(shí)現(xiàn)。我覺(jué)得完全可以用rxjs來(lái)實(shí)現(xiàn)flux構(gòu)建。

痞性 回答

原來(lái)是自己一直在轉(zhuǎn)牛角尖 獲取不了數(shù)據(jù)跟前后端約定的回調(diào)函數(shù)名稱有關(guān),還有不需添加response的頭文件信息(具體原理沒(méi)有研究過(guò))

幼梔 回答
        if (1 === 1) {
            let nameSet = new Set();
            if (1 === 2) {
                // do nothing
            } else {
                console.log(nameSet)
                getArrayFromOl(nameSet)
                
                function getArrayFromOl(nameSet) {
                    console.log(nameSet)
                }
            }
        }

ps:函數(shù)聲明不要寫在條件語(yǔ)句中,拿出來(lái)

補(bǔ)充:
問(wèn)題主要原因是chrome和safari對(duì)于函數(shù)在條件語(yǔ)句中聲明表現(xiàn)不一致導(dǎo)致的??梢杂靡韵麓a驗(yàn)證

        test1() 
        if (true) {
            if (false) {

            } else {
                function test1() {
                    console.log('test') // chrome中報(bào)錯(cuò),safari中打印出`test`
                }
            }
        }

而題主的問(wèn)題原因是:在safarigetArrayFromOl函數(shù)相當(dāng)與已經(jīng)提升到最外層的if之外,而nameSet由于是let聲明,所以作用域在第一個(gè)if內(nèi),所以getArrayFromOl取不到相應(yīng)的值

局外人 回答

帶變量,將流程經(jīng)過(guò)的節(jié)點(diǎn)寫在變量中?
或者直接在數(shù)據(jù)庫(kù)中標(biāo)記流程經(jīng)過(guò)的每一個(gè)節(jié)點(diǎn),到達(dá)節(jié)點(diǎn)的時(shí)候根據(jù)流程id去判斷就可以了。

冷眸 回答

ArrayAdapter requires the resource ID to be a TextView,你請(qǐng)求的是adapter用的資源id應(yīng)該是一個(gè)textView控件的id。根據(jù)你寫的adapter繼承的ArrayAdapter的的構(gòu)造函數(shù)看,他需要傳的是一個(gè)textview控件的資源id而不是一個(gè)布局的資源id

失心人 回答
$('input').on('touchstart', function() {
    $('input').focus()
})
$('#tiaozhuan').on('touchstart', function() {
    window.location.href = 'xxx.html'
})
吢丕 回答

h5展示頁(yè)引入編輯后富文本所需的css class樣式, 編輯后的富文本html標(biāo)簽里有class不用style,

大濕胸 回答

大哥,你的是怎么解決的

網(wǎng)妓 回答

Laravel提供了中間件優(yōu)先級(jí), 這是默認(rèn)的中間件優(yōu)先級(jí), 其它的都要排在它們后面

//illuminate/Foundation/Http/kernel.php
protected $middlewarePriority = [
    \Illuminate\Session\Middleware\StartSession::class,
    \Illuminate\View\Middleware\ShareErrorsFromSession::class,
    \Illuminate\Auth\Middleware\Authenticate::class,
    \Illuminate\Session\Middleware\AuthenticateSession::class,
    \Illuminate\Routing\Middleware\SubstituteBindings::class,
    \Illuminate\Auth\Middleware\Authorize::class,
];

你可以在App/Http/Kernel.php中自定義你的優(yōu)先級(jí):

protected $middlewarePriority = [
    \Illuminate\Session\Middleware\StartSession::class,
    \Illuminate\View\Middleware\ShareErrorsFromSession::class,
    \App\Http\Middleware\Cross::class,
    \App\Http\Middleware\Options::class,
    \Illuminate\Auth\Middleware\Authenticate::class,
    \Illuminate\Session\Middleware\AuthenticateSession::class,
    \Illuminate\Routing\Middleware\SubstituteBindings::class,
    \Illuminate\Auth\Middleware\Authorize::class,
];
憶往昔 回答

封裝成獨(dú)立的task提交給NioEventLoop統(tǒng)一執(zhí)行,而不是業(yè)務(wù)線程直接操作,如下圖所示,參見(jiàn)Netty系列之Netty線程模型2.4.3。
0708034.png

put是修改記錄 delete是刪除記錄 post是新增 get是獲取