static::class

static::class 获取脚本调用的类名.比如A继承与B,在B中,static::class的值为A.

猜你喜欢

转载自blog.csdn.net/m0_37477061/article/details/88639529