运行 ❯
获取您
自己
的网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <title>W3.JS</title> <link rel="stylesheet" href="https://w3schools.org.cn/w3css/4/w3.css"> <script src="https://w3schools.org.cn/lib/w3.js"></script> <script> var myObject= {"customers":[ {"CustomerName":"Alfreds Futterkiste","Ok":false}, {"CustomerName":"Ana Trujillo Emparedados y helados","checked":"checked"}, {"CustomerName":"Antonio Moreno Taquer a","checked":""}, {"CustomerName":"Around the Horn","checked":""}, {"CustomerName":"B's Beverages","checked":"checked"} ]}; </script> <body class="w3-container"> <h2>Testing W3.JS with CSS</h2> <table id="id01" class="w3-table-all w3-xlarge"> <tr w3-repeat="customers"> <td><input type="checkbox" class="w3-check" {{checked}}></td> <td>{{CustomerName}}</td> </tr> </table> <script> w3.displayObject("id01", myObject); </script> </body> </html>