标签:个数 bsp rip scale 函数 script com func info
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 <title>Document</title> 7 <script src="../js/react.development.js"></script> 8 <script src="../js/react-dom.development.js"></script> 9 <script src="../js/babel.min.js"></script> 10 </head> 11 <body> 12 13 <div id="box"></div> 14 15 <script type="text/babel"> 16 //动态展示列表数据 17 var lis=[‘jQuery‘,‘zeptoo‘,‘Angular‘,‘react‘,‘vue‘,‘ajax‘]; 18 var vul=( 19 <ul> 20 { 21 lis.map( (li,index,lis) => <li key={index}> {li} </li> ) //使用map方法将一个数据的数组转换为一个标签的数组 22 } 23 </ul> 24 ) 25 ReactDOM.render(vul, document.getElementById("box")); 26 27 </script> 28 </body> 29 </html>
标签:个数 bsp rip scale 函数 script com func info
原文地址:https://www.cnblogs.com/shanlu0000/p/12483980.html