2025WebWebWeb
Web
AI
GitHub CopilotAmazon CodeWhispererAI
AI:
- — AI
- —
- — AI
- —
AI
// AI
//
function validateEmail(email) {
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
return emailRegex.test(email);
}
//
// if (user.age >= 18) { ... }
// if (user && user.age >= 18) { ... }
WebAssembly (WASM) — Web
WebAssemblyC++RustGo
WebAssembly:
- — UnityUnreal Engine
- — Web
- —
- 3D —
10-20
JavaScript
95%
50+
CSS
1. CSS Container Queries
CSS
Container Queries
.card {
container-type: inline-size;
}
@container (max-width: 400px) {
.card h2 {
font-size: 1.2rem;
}
.card p {
font-size: 0.9rem;
}
}
@container (min-width: 401px) {
.card {
display: grid;
grid-template-columns: 1fr 2fr;
}
}
2. CSS Grid Level 2
CSS Gridsubgrid
3. CSS Houdini
CSSAPI
JavaScript
ES2024
JavaScript
:
- —
- —
- Record & Tuple —
- —
JavaScript
// (ES2024)
const users = [
{ name: '', age: 25, city: '' },
{ name: '', age: 30, city: '' },
{ name: '', age: 25, city: '' }
];
const groupedByAge = users.groupBy(user => user.age);
// : { 25: [...], 30: [...] }
// ()
const result = users
|> filter(user => user.age > 25)
|> map(user => user.name)
|> join(', ');
// ()
const response = match(fetch('/api/user')) {
{ status: 200, data } => data,
{ status: 404 } => '',
{ status: 500 } => '',
_ => ''
};
Web (PWA)
PWA
Service Workers
Web App Manifest
Web
1. Web Components
Web Component
class UserCard extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: 'open' });
}
connectedCallback() {
const name = this.getAttribute('name');
const email = this.getAttribute('email');
this.shadowRoot.innerHTML = `
<style>
.card {
border: 1px solid #ccc;
padding: 1rem;
border-radius: 8px;
}
</style>
<div class="card">
<h3>${name}</h3>
<p>${email}</p>
</div>
`;
}
}
customElements.define('user-card', UserCard);
//
// <user-card name="" email="taro@example.com"></user-card>
2. Web APIs
- WebRTC — P2P
- WebGL 2.0 — 3D
- Web Audio API —
- Web Bluetooth — Bluetooth
| 2024 | ||
|---|---|---|
| React 18+ | Concurrent FeaturesSuspenseServer Components | |
| Vue 3 | Composition APITypeScript | |
| Svelte 5 | RunesJavaScript | |
| Solid.js | ReactAPI | |
| Astro |
- SpectreMeltdown — CPU
- CSRF — SameSite
- XSS — (CSP)
- — GDPRCCPA
:
- HTTPS Everywhere —
- HSTS — HTTPS
- —
- — API
2024Web
Web
GoogleLargest Contentful Paint (LCP)First Input Delay (FID)Cumulative Layout Shift (CLS)
:
- —
- —
- —
- — preloadprefetchpreconnect
- — WebPAVIF
— Web
- — =
- — CPU
- —
- —
2026-2027:
- WebGPU — GPU
- Web Neural Network API —
- WebAssembly 2.0 —
- Quantum Web — Web
- — HTMLCSSJavaScript
- 1 — ReactVueSvelte
- WebAssembly — Web
- —
- —
:
- MDN Web Docs — Web
- Web.dev — Google
- Can I Use —
- Web Platform Tests —
:
- CSS-Tricks — CSSWeb
- Smashing Magazine — Web
- Dev.to —
- Reddit r/webdev —
2024WebAIWebAssemblyCSSJavaScript
Web