- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
'use strict'
const {TheCtrl} = require('the-controller-base')
const {withAuthorized} = require('the-controller-mixins')
async function tryExample () {
class MyCtrl extends withAuthorized(TheCtrl) {
/* ... */
}
}
tryExample().catch((err) => console.error(err))
3_dar 31.12.2021 15:47 # 0
3_dar 31.12.2021 15:50 # 0
JloJle4Ka 31.12.2021 15:59 # +1
3_dar 31.12.2021 16:39 # +2
JloJle4Ka 31.12.2021 16:44 # +1
guest6 31.12.2021 17:05 # +3
guest6 31.12.2021 17:07 # +2
bormand 31.12.2021 16:52 # +2
j123123 03.01.2022 07:22 # +3
defecatinho 03.01.2022 11:56 # +2
guest6 31.12.2021 18:11 # +1
guest6 31.12.2021 18:19 # +2
guest6 31.12.2021 18:20 # +2
В Руби, где есть include.
В жаваскрипте миксинов быть не может
guest6 31.12.2021 18:23 # +1
guest6 31.12.2021 18:25 # +2
kedgan 09.03.2023 13:05 # 0
guest6 31.12.2021 18:25 # +1
guest6 31.12.2021 18:26 # +3
но в примере то не так
SpetzOperation 08.03.2023 22:55 # 0
guest6 08.03.2023 23:58 # 0
Gorbatokaloedov 09.03.2023 00:43 # 0
guest6 09.03.2023 00:47 # 0
SpetzOperation 10.03.2023 23:50 # 0
o6AMa_4MO 11.03.2023 11:24 # 0
BPAJlbMAH 13.03.2023 20:48 # 0