UNPKG
aspects-js
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
use aop in nodejs
github.com/wm123450405/aspects-js
wm123450405/aspects-js
aspects-js
/
test
/
b.js
16 lines
(13 loc)
•
236 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const
A =
require
(
'./a'
);
//测试重复引用
const
test =
require
(
'./test'
);
class
B
extends
A
{
get
a
() {
console
.
log
(
'属性不能切面'
);
return
0
; }
doA
(
) {
console
.
log
(
this
.
a
); } }
module
.
exports
= B;