public function behaviors() { $behaviors = parent::behaviors(); $time = [ 'class' => \yii\behaviors\TimestampBehavior::class, 'value' => fn () => date('Y-...
public function behaviors() { $behaviors = parent::behaviors(); $time = [ 'class' => \yii\behaviors\TimestampBehavior::class, 'value' => fn () => date('Y-...
https://github.com/modood/Administrative-divisions-of-Chinahttps://gitee.com/shadowy/china-city
Yii2对象public function __construct( public AssetLogic $logic, $config = [], ) { parent::__construct($config); }控制器包括命令行和webpublic function __construct( $id, $moudule, $config...
很多产品都是"滤镜",比如:mbti心理测试,实际上就是说用户好话,让用户便于分享.类似于照片美颜
$patient->touch(['update_time']);
可以在输出前配置 protected $casts = [ 'created_at' => 'datetime:Y-m-d h:i:s', 'updated_at' => 'datetime:Y-m-d h:i:s', ];
$type = 'miniprogram'; switch ($type) { case Message::MSGTYPE_MINIPROGRAM: var_dump(22); case Message::MSGTYPE_VIDEO: var_dump(111); break; default: brea...
获取radio值$('input:radio:checked').val();input禁用$('input[name="company[company_name]"]').prop("readonly", '');select禁用$('select[name="user[meta][age_group]"]').prop(&quo...
修改配置文件中的enable_root_access为1,重启通过adb connect IP:portadb shellsu root