playground:playground
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
playground:playground [2023/12/25 05:51] – [ss2] math | playground:playground [2024/10/17 11:52] (当前版本) – [必应搜索] 221.217.26.244 | ||
---|---|---|---|
行 11: | 行 11: | ||
====== 一级标题 ====== | ====== 一级标题 ====== | ||
- | ===== ss2 ===== | + | ===== 标题 H2 |
+ | |||
+ | ---- | ||
行 22: | 行 24: | ||
$\frac{a}{b}\pm \frac{c}{d}= \frac{ad \pm bc}{bd} $ | $\frac{a}{b}\pm \frac{c}{d}= \frac{ad \pm bc}{bd} $ | ||
+ | |||
+ | $$\frac{a}{b}\pm \frac{c}{d}= \frac{ad \pm bc}{bd} $$ | ||
---- | ---- | ||
行 38: | 行 42: | ||
$\begin{pmatrix} | $\begin{pmatrix} | ||
- | ==== ss3 ==== | + | ==== 标题 H3 ==== |
- | === ss4 === | ||
- | ====== 标题2 ====== | + | ---- |
+ | |||
+ | ====== 标题 H1 ====== | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <meta charset=" | ||
+ | <meta name=" | ||
+ | < | ||
+ | body { | ||
+ | font-family: | ||
+ | margin: 50px; | ||
+ | } | ||
+ | |||
+ | #countdown { | ||
+ | font-size: 24px; | ||
+ | margin-top: 20px; | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | <label for=" | ||
+ | <input type=" | ||
+ | <button onclick=" | ||
+ | |||
+ | <div id=" | ||
+ | |||
+ | < | ||
+ | let countdownInterval; | ||
+ | |||
+ | function startCountdown() { | ||
+ | // 清除之前的倒计时定时器 | ||
+ | clearInterval(countdownInterval); | ||
+ | |||
+ | // 获取用户输入的日期 | ||
+ | const birthdateInput = document.getElementById(' | ||
+ | const birthdate = new Date(birthdateInput.value); | ||
+ | |||
+ | // 更新倒计时显示 | ||
+ | updateCountdown(birthdate); | ||
+ | |||
+ | // 每秒更新一次倒计时 | ||
+ | countdownInterval = setInterval(() => { | ||
+ | updateCountdown(birthdate); | ||
+ | }, 1000); | ||
+ | } | ||
+ | |||
+ | function updateCountdown(birthdate) { | ||
+ | // 获取当前日期和时间 | ||
+ | const now = new Date(); | ||
+ | |||
+ | // 计算距离日期的秒数 | ||
+ | const timeDifference = Math.floor((birthdate - now) / 1000); | ||
+ | |||
+ | // 更新页面上的倒计时显示 | ||
+ | const countdownElement = document.getElementById(' | ||
+ | countdownElement.textContent = `人生还剩余 ${timeDifference} 秒`; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
====== 灌水 ====== | ====== 灌水 ====== | ||
+ | |||
+ | ---- | ||
+ | |||
测试页面 | 测试页面 | ||
行 58: | 行 131: | ||
:-D :-P ĊÊ | :-D :-P ĊÊ | ||
- | ---- | ||
- | ---- | ||
---- | ---- | ||
- | ---- | + | |
- | ---- | + | |
输入下面这行代码,就可以轻松嵌入外部视频。 | 输入下面这行代码,就可以轻松嵌入外部视频。 | ||
行 84: | 行 154: | ||
- | ====== 必应搜索 ====== | + | ---- |
+ | ====== 必应搜索 ====== | ||
+ | < | ||
< | < | ||
+ | </ | ||
+ | </ | ||
+ | **上面是代码,下面是具体效果:** | ||
+ | |||
+ | < | ||
</ | </ | ||
+ | |||
+ | |||
+ | ---- | ||
< | < | ||
- | %inculde(studio, | + | #include <stdio.h> |
- | vodi mian[nit | + | int main(int |
- | | + | |
- | | + | |
- | ) | + | } |
</ | </ | ||
playground/playground.1703454686.txt.gz · 最后更改: 2023/12/25 05:51 由 math