💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
``` function Divider(){ const text = 'Label1 Text' function dateToString(d){ return [ d.getFullYear(), d.getMonth()+1, d.getDate() ].join('-') } return ( <div><h1 className="question">{text}<hr/></h1> <h2>{this.dateToString(new Date())}</h2> </div> ) } ``` ``` function Divider(){ const text = 'Label1 Text' function dateToString(d){ return [ d.getFullYear(), d.getMonth()+1, d.getDate() ].join('-') } return ( <div><h1 className="question">{text}<hr/></h1> <h2>{dateToString(new Date())}</h2> </div> ) } ```