鍍金池/ 問答
話寡 回答

this.refs和this.refs.backTree是在一起打印的嗎?中間有沒有修改這個對象?

有你在 回答

一般值為nil的時候?qū)е碌谋罎⒍伎梢圆蹲降剑侨绻麅?nèi)存問題導致的崩潰,比如內(nèi)存泄漏一直增加的,是沒有的

過客 回答

http://zhwen.org/?p=984&from=...
優(yōu)雅的重啟服務(wù),主要使用信號量,在已啟動的進程中創(chuàng)建子進程,不影響用戶體驗.新啟動的和再次啟動的服務(wù)創(chuàng)建更新后的服務(wù)的進程.

局外人 回答

哎,是linux 環(huán)境上npm 包 版本不對。。。這種東西就很煩

呆萌傻 回答

你的id="inner" 定義了 width:100px,而內(nèi)部的li 是 position: relative 按照其特性不會懸浮,所以還是擠在里面,而寬度受限,因此 span_position 移到下方。
因此要這么改

#inner {
    width: 100px;
    background-color: blue;
    height: 100px;
}
.span_position {
    background-color: green;
    position: absolute;
    width: 100px;
    top: 0;
    left: 100%;
}
法克魷 回答

簡單說,if是按需渲染,show是初始渲染再改變display屬性。 也就是說,if是動態(tài)生成或移去dom, v-show是無論真假,dom都已經(jīng)存在,只不過是用css方式隱藏了。

萌吟 回答

少了$符號,

this.$nextTick(() => {})
柒槿年 回答

<el-form-item label="是否復雜" class="fix-item" prop="name" v-if="path==='/new'">

<el-select v-model="form.complex" placeholder="請選擇是否復雜查詢">
  <el-option label="否" :value="0"></el-option>
  <el-option label="是" :value="1"></el-option>
</el-select>

</el-form-item>
option 的value要動態(tài)綁定
然后js的data中定義 默認值即可
form: {

 complex: 1

}

維她命 回答

你在import.js里用了import,這里沒有被babel處理過,所以報錯了

尐飯團 回答

clipboard.png

其實除了這個文件夾,其他所有的文件我都能正常提交,所以我就在想是不是這個文件是別人的的原因呢?

過客 回答

ConvertEmptyStringsToNull 中間件是 Laravel 5.4 才開始加入的。

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.

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

如果你確實不想這樣處理,可以在 app/Http/Kernel.php 文件中注釋掉此 middleware

    /**
     * The application's global HTTP middleware stack.
     *
     * These middleware are run during every request to your application.
     *
     * @var array
     */
    protected $middleware = [
        \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
        \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
        \App\Http\Middleware\TrimStrings::class,
        \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, //注釋掉此行
    ];

或者:

從數(shù)據(jù)庫層面,把 remark 字段的默認值設(shè)置為 空字符串

熟稔 回答

IP白名單設(shè)置頁,不要打鉤,IP隨便填一個,確定
圖片描述

挽青絲 回答

mysqldump就可以帶日志位置信息備份,去看下參數(shù)具體定義,直接備份文件恢復按日志開啟同步即可

兔囡囡 回答

遇到相同情況,請問問題解決了么

溫衫 回答
<div class="main">
    <div class="txt"></div>
    <div class="line"></div>
</div>

類名為txt的div代表你弄好的那一段,然后再加一個類名為line的div,定位在你畫出的線段上方(z-index),給line設(shè)置背景顏色
然后根據(jù)進度改變line的寬度
大致思路就是這樣

礙你眼 回答

問題解決了,我的程序有點問題,不應該將xdata,ydata設(shè)置成全局變量,這樣數(shù)組的長度就會是所有請求中最多的,導致數(shù)據(jù)錯亂

菊外人 回答
如果我想在這臺服務(wù)器下再添加幾個私有的ip可以做到嗎?因為我想用一個ip專門部署mysql,一個ip部署web服務(wù)器和PHP。

本機的私有 IP ,在你說的這種場景下,沒有任何意義。用端口就行了。硬要做,自己去搜索“虛擬網(wǎng)卡”。

還有一個問題是公司買了很多臺阿里云服務(wù)器,用于部署不同的站點(它們有不同的公網(wǎng)ip)為啥連接mysql的時候可以用內(nèi)網(wǎng)ip連接

因為 mysql 就在那臺內(nèi)網(wǎng) ip 的機器上。