鍍金池/ 問答/ PHP問答
尛憇藌 回答

從報錯上看應該是是沒有找到這個tree的dom,this.$refs.tree應該沒找到

怣痛 回答

@歲月回音
弄懂了 誤會你了
是我連接拼接錯誤導致~

itms-services://?action=download-manifest&url=‘https://gitee.com/214836649/enjoy_the_app_sharing_system/raw/3f28a6d773d047e38e744ff58268414930640cbb/kzwx.plist’


itms-services://?action=download-manifest&url=https://gitee.com/214836649/enjoy_the_app_sharing_system/raw/3f28a6d773d047e38e744ff58268414930640cbb/kzwx.plist
枕頭人 回答

第三方登錄的單獨存一張表,然后和client表關聯(lián)

離人歸 回答

resize事件是否綁定成功 是否每次寬度改變執(zhí)行了change方法
如果change執(zhí)行了那是否fontSize沒有賦值成功

寫榮 回答

問題1:
官方?jīng)]有任何文獻說明 空字符串null 效率高。

問題2:
數(shù)據(jù)庫設計是矛盾的,既然默認值是,就沒必要設置字段為 not null。如果你非要這樣,你可以在 controller 里面使用 array_filter($request->all()) 來過濾掉 null 或者 空字符串 的參數(shù)。

最后,Laravel 是在 5.4 開始加入的,同時加入的還有 TrimStrings, 官方的提交記錄沒有說明是為了什么,個人認為官方是為了標準化數(shù)據(jù)格式,進行統(tǒng)一規(guī)范。

=======分割線=======

繼續(xù)補充一下:

如果非要按照自己的要求來,也建議不要直接去注釋掉官方的中間件引用,以免其他問題,可以定義你自己的 request,在request 處理這個參數(shù)的時候,修改成自己想要的值。

php artisan make:request YourRequest

=======繼續(xù)割========

By default, Laravel includes the TrimStrings and ConvertEmptyStringsToNull middleware in your application's global middleware stack. These middleware are listed in the stack by the AppHttpKernel class. These middleware will automatically trim all incoming string fields on the request, as well as convert any empty string fields to null. This allows you to not have to worry about these normalization concerns in your routes and controllers.

If you would like to disable this behavior, you may remove the two middleware from your application's middleware stack by removing them from the $middleware property of your AppHttpKernel class.

看官方描述的意思 TrimStringsConvertEmptyStringsToNull 就是為了規(guī)范化數(shù)據(jù)。

檸檬藍 回答

因為源碼那里,作者使用的defineproperty(),只監(jiān)控了外部data傳進來的list,而沒有監(jiān)控list里面的每一個下標對象

毀了心 回答

Php可以用rabbitMQ這些消息隊列來處理數(shù)量較大的數(shù)據(jù),前端可以一次性或分批傳遞數(shù)據(jù),反正rabbitMQ可以一直維持服務

不將就 回答

切記,先不要對該磁盤有任何寫操作,然后再試試用恢復軟件。

至于用哪些恢復軟件,可以看看這個回答

溫衫 回答

如果是PHP的話,curl 請求的應該是個字符串, 用json_decode( $ret, true) 解析請求的結(jié)果,然后就是數(shù)組了

夏夕 回答

將項目放在根目錄下就可以了

懶豬 回答

去極光推送社區(qū)問吧,之前我們也是ios無法推送,最后是那邊的技術排出來的,服務端的開發(fā)環(huán)境沒有換成生產(chǎn)環(huán)境

悶騷型 回答

foreach循環(huán)如果匹配到2個以上的敏感詞,你的result變量只屏蔽了最后一個詞

嫑吢丕 回答
哎?現(xiàn)在的程序員都不會寫多線程了嗎?

區(qū)別的話,性能上有點區(qū)別,redis的隊列是可控的,完整的;定時的計劃任務易受干擾,程序的操作邏輯需要信任外部的一個程序,可控性較低

悶騷型 回答

應該是你的解析json數(shù)據(jù)出錯導致的

慢半拍 回答

如果是模版渲染的,不都是后端來做緩存嗎?后端會處理這些啊。前端也可以來做。但是并不明白你的難點在哪里。

不討喜 回答

https://packagist.org/package...
圖片描述

雖然不知道你為什么要下載那么古老的 2.0.5 的版本,但是 composer 官網(wǎng)上的 yiisoft/yii2-app-advanced 包并沒 2.0.5 版本。

現(xiàn)在 yiisoft/yii2-app-advanced 的最新版本是 2.0.14,可以使用如下命令進行下載:

composer create-project yiisoft/yii2-app-advanced advanced 2.0.14

實際上,到目前為止,yii2框架核心的版本已經(jīng)是 2.0.15.1,安裝時composer 會自動將其升級為最新版本。

[/tmp] ]$composer create-project yiisoft/yii2-app-advanced advanced 2.0.14
Installing yiisoft/yii2-app-advanced (2.0.14)
  - Installing yiisoft/yii2-app-advanced (2.0.14): Loading from cache
Created project in advanced
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 59 installs, 0 updates, 0 removals
  - Installing yiisoft/yii2-composer (2.0.6): Loading from cache
  - Installing swiftmailer/swiftmailer (v5.4.9): Loading from cache
  - Installing bower-asset/jquery (3.2.1): Loading from cache
  - Installing bower-asset/yii2-pjax (2.0.7.1): Loading from cache
  - Installing bower-asset/punycode (v1.3.2): Loading from cache
  - Installing cebe/markdown (1.1.2): Loading from cache
  - Installing ezyang/htmlpurifier (v4.10.0): Loading from cache
  - Installing bower-asset/inputmask (3.3.11): Loading from cache
  - Installing yiisoft/yii2 (2.0.15.1): Loading from cache
  - Installing yiisoft/yii2-swiftmailer (2.0.7): Loading from cache
  - Installing bower-asset/bootstrap (v3.3.7): Loading from cache
  - Installing yiisoft/yii2-bootstrap (2.0.8): Loading from cache
  - Installing yiisoft/yii2-debug (2.0.13): Loading from cache
  - Installing bower-asset/typeahead.js (v0.11.1): Loading from cache
  - Installing phpspec/php-diff (v1.1.0): Loading from cache
  - Installing yiisoft/yii2-gii (2.0.6): Loading from cache
  - Installing fzaninotto/faker (v1.7.1): Loading from cache
  - Installing yiisoft/yii2-faker (2.0.4): Loading from cache
  - Installing doctrine/instantiator (1.0.5): Loading from cache
  - Installing phpunit/php-text-template (1.2.1): Loading from cache
  - Installing sebastian/recursion-context (2.0.0): Loading from cache
  - Installing sebastian/exporter (2.0.0): Loading from cache
  - Installing phpunit/phpunit-mock-objects (3.4.4): Loading from cache
  - Installing codeception/stub (1.0.2): Loading from cache
  - Installing sebastian/diff (1.4.3): Loading from cache
  - Installing sebastian/version (2.0.1): Loading from cache
  - Installing sebastian/code-unit-reverse-lookup (1.0.1): Loading from cache
  - Installing phpunit/php-file-iterator (1.4.5): Loading from cache
  - Installing sebastian/resource-operations (1.0.0): Loading from cache
  - Installing sebastian/comparator (1.2.4): Loading from cache
  - Installing webmozart/assert (1.3.0): Loading from cache
  - Installing phpdocumentor/reflection-common (1.0.1): Loading from cache
  - Installing phpdocumentor/type-resolver (0.4.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (3.3.2): Loading from cache
  - Installing phpspec/prophecy (1.7.5): Loading from cache
  - Installing myclabs/deep-copy (1.7.0): Loading from cache
  - Installing phpunit/php-token-stream (1.4.12): Loading from cache
  - Installing sebastian/environment (2.0.0): Loading from cache
  - Installing phpunit/php-code-coverage (4.0.8): Loading from cache
  - Installing phpunit/php-timer (1.0.9): Loading from cache
  - Installing sebastian/global-state (1.1.1): Loading from cache
  - Installing sebastian/object-enumerator (2.0.1): Loading from cache
  - Installing symfony/yaml (v3.4.8): Downloading (100%)
  - Installing phpunit/phpunit (5.7.27): Loading from cache
  - Installing codeception/phpunit-wrapper (6.0.9): Downloading (100%)
  - Installing behat/gherkin (v4.5.1): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.7.0): Loading from cache
  - Installing symfony/dom-crawler (v3.4.8): Downloading (100%)
  - Installing symfony/css-selector (v3.4.8): Downloading (100%)
  - Installing symfony/browser-kit (v3.4.8): Downloading (100%)
  - Installing symfony/event-dispatcher (v3.4.8): Downloading (100%)
  - Installing psr/log (1.0.2): Loading from cache
  - Installing symfony/debug (v3.4.8): Downloading (100%)
  - Installing symfony/console (v3.4.8): Downloading (100%)
  - Installing symfony/finder (v3.4.8): Downloading (100%)
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing guzzlehttp/psr7 (1.4.2): Loading from cache
  - Installing codeception/base (2.4.1): Downloading (100%)
  - Installing codeception/verify (0.3.3): Loading from cache
phpunit/phpunit-mock-objects suggests installing ext-soap (*)
phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.1)
sebastian/global-state suggests installing ext-uopz (*)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
phpunit/phpunit suggests installing ext-xdebug (*)
symfony/browser-kit suggests installing symfony/process ()
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
symfony/console suggests installing symfony/lock ()
symfony/console suggests installing symfony/process ()
codeception/base suggests installing aws/aws-sdk-php (For using AWS Auth in REST module and Queue module)
codeception/base suggests installing codeception/phpbuiltinserver (Start and stop PHP built-in web server for your tests)
codeception/base suggests installing codeception/specify (BDD-style code blocks)
codeception/base suggests installing flow/jsonpath (For using JSONPath in REST module)
codeception/base suggests installing league/factory-muffin (For DataFactory module)
codeception/base suggests installing league/factory-muffin-faker (For Faker support in DataFactory module)
codeception/base suggests installing phpseclib/phpseclib (for SFTP option in FTP Module)
codeception/base suggests installing stecman/symfony-console-completion (For BASH autocompletion)
codeception/base suggests installing symfony/phpunit-bridge (For phpunit-bridge support)
Writing lock file
Generating autoload files