<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                類文件里屬性值寫以下: ``` protected $autoWriteTimestamp=true; //開起時間戳 ``` 這句話在 (think里的Model.php里的) ``` <?php namespace app\index\model; use think\Model; class Maik extends Model{ protected $autoWriteTimestamp=true; //開始時間戳 public function usenameinfo(){ $res= $this->save(['name'=>'xiaoxiao','password'=>'12345','age'=>30]); dump($res); } } ``` ![](https://img.kancloud.cn/d7/6c/d76c9985304df6cd129af1c6d93951ac_935x331.png) 數據庫里增加 時間戳字段 (這2是默認的不要改) 這里數據庫里用int類型 ``` create_time 創建時間 update_time 更新時間 ``` ## 自定義時間戳名字 類里添加這2個屬性 名字隨便改 ``` protected $createTime = 'create_time'; protected $updateTime = 'update_time'; ``` ## 關閉自動創建時間戳 `protected $createTime = false;` ## 關閉自動更新時間戳 ` protected $updateTime =false;` ## 注意:這些屬性都是在自己創建的模型類里添加的 ![](https://img.kancloud.cn/d7/77/d7775d4325e47089428e42a75e966d1e_997x608.png) <br/><br/> ## 查詢數據會自動轉換為時間 ![](https://img.kancloud.cn/ef/58/ef584a6965cb785e19b201ab4e21d5a1_579x244.png)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看