AR 怎么更新的时候指定表 这样就直接报错了,说是没有 updateAllCounters 方法 $this->tableName() ->updateAllCounters(['downconunt' => 1]); 这样又不能指定表,我不想在 tablename 方法里面设置表。因为表有多个,所以不灵活 $this->updateAllCounters(['downconunt' => 1]);
还有这个 new \yii\db\Query();
怎么用更新,貌似只有查询的功能,没见有 UPdate 方法
还有怎么在 script 添加一个属性
<script type="text/html" id="test"> <script>