本页面提供上海市福彩网点的详细查询信息,包括网点名称、地址、电话号码和营业时间。
JavaScript 代码(动态生成网点信息):
javascript
const data = [{name: "网点1",address: "上海市浦东新区张江镇金科路100号",phone: "021-50789000",hours: "09:00-21:00"},{name: "网点2",address: "上海市黄浦区南京东路200号",phone: "021-53869000",hours: "09:00-21:00"},{name: "网点3",address: "上海市徐汇区衡山路88号",phone: "021-54659000",hours: "09:00-21:00"}
];const tableBody = document.querySelector("tbody");for (const item of data) {const row = document.createElement("tr");const nameCell = document.createElement("td");nameCell.textContent = item.name;row.appendChild(nameCell);const addressCell = document.createElement("td");addressCell.textContent = item.address;row.appendChild(addressCell);const phoneCell = document.createElement("td");phoneCell.textContent = item.phone;row.appendChild(phoneCell);const hoursCell = document.createElement("td");hoursCell.textContent = item.hours;row.appendChild(hoursCell);tableBody.appendChild(row);
}