Chạy ❯
Nhận trang web của
riêng
bạn
×
Thay đổi định hướng
Lưu mã
Thay đổi chủ đề, Tối/Sáng
Đi tới Không gian
<!DOCTYPE html> <html lang="en-US"> <title>Khách hàng</title> <link rel="stylesheet" href="style.css"> <script src="https://www.w3schools .com/appml/2.0.3/appml.js"></script> <body> <h1>Khách hàng</h1> <table appml-data="customers.js" appml-controller="myController"> <tr > <th>Khách hàng</th> <th>Thành phố</th> <th>Quốc gia</th> </tr> <tr appml-repeat="records"> <td>{{CustomerName}</td > <td>{{City}</td> <td>{{Country}</td> </tr> </table> <script> function myController($appml) { if ($appml.message = = "display") { if ($appml.display.name == "CustomerName") { $appml.display.value = $appml.display.value.toUpperCase(); } } } </script> </body> </html>