摘要: 定义: 对类进行处理的函数。 示例1. 为Test类添加target成员foo, 值为'bar' @fn class Test { } function fn(target) { target.foo = 'bar'; } console.log(Test.foo); 示例2. 为类添加target 阅读全文
posted @ 2021-12-05 16:45 cecelia 阅读(435) 评论(0) 推荐(0) 编辑