-
-
Save OMGZui/ee804b8ba606e658f6e7a6dfb86d041e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function info(target) { | |
target.prototype.name = 'Tom'; | |
target.prototype.age = 10; | |
} | |
@info | |
class Man {} | |
let man = new Man(); | |
man.name; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment