通过Cloudflare Worker实现简单的测试网站
创建worker 关于创建worker的方法可以参考 借助Cloudflare Worker获取公网IP worker.js 代码 const html = ` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Speed Test</title> <style> body { font-family: Arial, sans-serif; background-color: #111; color: #f0f0f0; text-align: center; padding: 20px; } h1 { color: #4CAF50; } .container { max-width: 600px; margin: 0 auto; padding: 20px; background-color: #222; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); } button { background-color: #4CAF50; color: #fff; border: none; padding: 15px 25px; font-size: 16px; border-radius: 5px; cursor: pointer; margin-bottom: 20px; } button:disabled { background-color: #888; cursor: not-allowed; } .status {……