企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` function handleClick(event){ console.log(event); } return ( <div className={isTrue?'red':'green'}><h1 className="question">{text}<hr/></h1> <h2 className={gettrue()}>{dateToString(new Date())}</h2> <h3 className={isTrue &&'p'}>{props.children}</h3> <input ref={myInputRef} /> <h3>{myInputRef.current}</h3> <h3 dangerouslySetInnerHTML={htmlString}></h3> <h3 onClick={handleClick.bind(this)}>点击</h3> </div> ) ```