您需要BR在结果字符串中适当插入标记,或使用例如PRE标记,以便stringify保留的格式: var data = { a: 1, b: 2 }; var Hello = React.createClass({ render: ...
確定! 回上一頁