AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
>[success] # 使用 ~~~ 1.因为'validatorOf' 是一个'Promise' 对象,因此使用的使用 是用'then','catch' 形式 ~~~ ~~~ import 'reflect-metadata' import MyPerson from '../src/model/module/MyPerson' const myPerson = new MyPerson() myPerson.name = '' myPerson.validatorOf('name').then(res=>{ console.log(res) }).catch(e=>{ console.log(e) }) ~~~