标签:oct 5.4 htm bsp render cti return head doc
<!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <title>Title</title> <script src="https://cdn.bootcss.com/react/15.4.2/react.min.js"></script> <script src="https://cdn.bootcss.com/react/15.4.2/react-dom.min.js"></script> <script src="https://cdn.bootcss.com/babel-standalone/6.22.1/babel.min.js"></script> </head> <body> <div id="react2"></div> <script type="text/babel"> var names=[‘llm‘,‘llm2‘,‘llm3‘]; ReactDOM.render( <div> { names.map(function(q){ //map()遍历数组 return <div>hello,{q}</div> }) } </div>, document.getElementById("react2") ); </script> </body> </html>
标签:oct 5.4 htm bsp render cti return head doc
原文地址:http://www.cnblogs.com/LLMjiayou7/p/7364395.html