随笔分类 -  web

摘要:首先要明确:Go本身没有“前端直接调用”的专属框架(因为前端和后端是跨端的,本质是通过HTTP/HTTPS网络协议通信),但Go生态有大量成熟的框架用于快速构建RESTful API服务,前端(如Vue/React/原生JS)可通过标准的HTTP请求(GET/POST/PUT/DELETE等)调用这 阅读全文
posted @ 2026-02-13 10:42 卓能文 阅读(9) 评论(0) 推荐(0)
摘要:import { StrictMode } from "react"; import { useForm } from "@tanstack/react-form"; import { zodValidator } from "@tanstack/zod-form-adapter"; import 阅读全文
posted @ 2024-08-22 20:09 卓能文 阅读(134) 评论(0) 推荐(0)
摘要:<html> <head> <meta name="color-scheme" content="light dark"> </head> <body> <h1>hello world</h1> <span>hello world</span> <input type="text" placehol 阅读全文
posted @ 2024-08-22 00:26 卓能文 阅读(34) 评论(0) 推荐(0)
摘要:src/my.counter.ts: import { type Component, define, html } from "hybrids"; interface MyCounter { count: number; } function increaseCount(host: MyCount 阅读全文
posted @ 2024-08-21 11:05 卓能文 阅读(23) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2024-08-16 09:18 卓能文 阅读(20) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document< 阅读全文
posted @ 2024-08-16 08:50 卓能文 阅读(20) 评论(0) 推荐(0)