AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
>[success] # 链式调用 ~~~ const func1 = Symbol('func1') export default class Point { static [func1] () { } } class Counters{ constructor(count=0){ this.count = count } add(value){ this.count+=value return this } sub(value){ this.count -=value return this } } let counters = new Counters() counters.add(3).sub(1) console.log(counters.count) class PowCounters extends Counters{ pow (value){ this.count = this.count ** value return this } } let powCounters = new PowCounters(5) powCounters.add(3).sub(1) console.log(powCounters.count) ~~~