使用 html javascript 实现 金币落袋效果

css金币动画_【续篇】2分钟做出金币飞舞到钱袋的效果 大家都知道,之前大部分的路径类动画都是采用 SVG 的方式来实现那第一个问题来了:复杂一些的线条动画如何生成呢?比如一些公司常用自己的吉祥物来作为 loading 背景图。有经验的同学应该会知道,可以通过工具(PS 或者AI)导出 SVG 路径。codePen 上有很多复杂的 path 动画,感兴趣可以搜索一下今天我们其实要解决的是很多养成类应用中特别核心的一个动画交互:金币飞舞到宝箱... 阅读详情

如图:

金币飞入顶部金币栏的动效,支持多金币同时飞、带抛物线 + 3D 旋转 + 落地反馈

要让金币落袋效果更逼真,我们可以从物理轨迹(抛物线 / 贝塞尔曲线)、细节反馈、音效与特效、性能优化这几个维度入手,把 “简单的直线飞” 升级成 “像游戏里一样的真实感动画”

  • 抛物线轨迹:金币飞出时先向上 “抛” 一下,再落向目标,模拟重力和初速度。
  • 随机偏移:每个金币的起点 / 落点有微小偏差,避免 “复制粘贴式” 的僵硬感。
  • 初速度与加速度:前半段快,后半段减速,模拟空气阻力。
  • 3D 旋转 + 透视:金币在飞行中绕不同轴旋转,配合大小变化模拟近大远小。
  • 光影变化:飞行时的亮度 / 透明度随角度变化,模拟光照。
  • 尾迹 / 拖影:短暂的淡金色尾迹,强化速度感。
  • 落地反馈:金币到达目标时,钱袋 / 数字有轻微的 “抖动 + 放大” 效果,增强交互反馈。

音效与震动

  • 金币飞行的 “咻” 声、落地的 “叮” 声。
  • 移动端可以加轻微震动,强化 “落袋成功” 的爽感。

性能与体验

  • 金币复用池:避免频繁创建 / 销毁 DOM,提升流畅度。
  • 限制最大同时动画数量,防止卡顿。
  • 响应式适配,不同屏幕下轨迹不跑偏。

核心代码:

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>超逼真金币落袋效果</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            height: 100vh;
            background: #1a1a4e;
            overflow: hidden;
            user-select: none;
            position: relative;
        }
        /* 顶部金币UI */
        .top-bar {
            position: fixed;
            top: 20px;
            left: 0;
            width: 100%;
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 0 20px;
            z-index: 10;
        }
        .coin-box {
            display: flex;
            align-items: center;
            background: rgba(255,255,255,0.1);
            border-radius: 999px;
            padding: 6px 12px;
            gap: 8px;
            transition: transform 0.1s ease;
        }
        .coin-box:active {
            transform: scale(0.95);
        }
        .coin-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #ffdf4f, #ffb700);
            box-shadow: 0 0 8px #ffd000;
        }
        .coin-count {
            color: white;
            font-size: 28px;
            font-weight: bold;
            font-family: sans-serif;
            transition: transform 0.15s ease;
        }
        /* 飞行动画金币 */
        .flying-coin {
            position: fixed;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #ffdf4f, #ffb700);
            box-shadow: 0 0 10px #ffd000;
            pointer-events: none;
            z-index: 999;
            /* 3D旋转关键属性 */
            transform-style: preserve-3d;
            perspective: 500px;
        }
        /* 点击区域 */
        .click-area {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, rgba(255,223,79,0.3), rgba(255,183,0,0.3));
            cursor: pointer;
            border: 2px dashed rgba(255,255,255,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <!-- 顶部金币UI -->
    <div class="top-bar">
        <div class="coin-box" id="coinBox">
            <div class="coin-icon"></div>
            <span class="coin-count" id="coinCount">844</span>
        </div>
    </div>

    <!-- 点击区域 -->
    <div class="click-area" id="clickArea">点击生成金币</div>

    <script>
        const clickArea = document.getElementById('clickArea');
        const coinCountEl = document.getElementById('coinCount');
        const coinBoxEl = document.getElementById('coinBox');
        let coinCount = 844;
        let targetRect;

        // 金币对象池,复用DOM,提升性能
        const coinPool = [];
        const maxCoins = 20; // 最大同时动画数量

        // 更新目标位置
        function updateTargetRect() {
            const coinIcon = document.querySelector('.coin-icon');
            targetRect = coinIcon.getBoundingClientRect();
        }
        window.addEventListener('load', updateTargetRect);
        window.addEventListener('resize', updateTargetRect);

        // 点击生成金币(一次生成多个,更有真实感)
        clickArea.addEventListener('click', (e) => {
            // 一次生成3-5个金币,随机数量
            const count = Math.floor(Math.random() * 3) + 3;
            for (let i = 0; i < count; i++) {
                // 随机延迟,避免同时出发
                setTimeout(() => {
                    // 给每个金币加随机起点偏移,避免完全一样
                    const offsetX = (Math.random() - 0.5) * 60;
                    const offsetY = (Math.random() - 0.5) * 60;
                    createFlyingCoin(e.clientX + offsetX, e.clientY + offsetY);
                }, i * 50);
            }
            coinCount += count;
        });

        // 从对象池获取金币
        function getCoinFromPool() {
            if (coinPool.length > 0) {
                return coinPool.pop();
            }
            // 池子里没有就新建
            const coin = document.createElement('div');
            coin.className = 'flying-coin';
            return coin;
        }

        // 回收金币到对象池
        function recycleCoin(coin) {
            if (coinPool.length < maxCoins) {
                coin.style.display = 'none';
                coinPool.push(coin);
            } else {
                coin.remove();
            }
        }

        function createFlyingCoin(startX, startY) {
            const coin = getCoinFromPool();
            coin.style.display = 'block';
            coin.style.left = startX - 12 + 'px';
            coin.style.top = startY - 12 + 'px';
            document.body.appendChild(coin);

            // 目标位置(带随机偏移,避免所有金币都落同一个点)
            const targetX = targetRect.left + targetRect.width / 2 - 12 + (Math.random() - 0.5) * 10;
            const targetY = targetRect.top + targetRect.height / 2 - 12 + (Math.random() - 0.5) * 10;

            // 动画参数:随机时长、随机抛高,让每个金币轨迹都不一样
            const duration = 0.5 + Math.random() * 0.3; // 0.5-0.8秒
            const arcHeight = 60 + Math.random() * 60; // 抛物线抛高60-120px
            const startTime = performance.now();

            function animate(currentTime) {
                const elapsed = (currentTime - startTime) / 1000;
                const progress = Math.min(elapsed / duration, 1);

                // 缓动函数:先快后慢,模拟真实加速度
                const easeProgress = 1 - Math.pow(1 - progress, 3);

                // 1. 抛物线轨迹计算
                const t = easeProgress;
                const midY = Math.min(startY, targetY) - arcHeight;
                const x = startX + (targetX - startX) * t;
                const y = (1 - t) * (1 - t) * startY + 2 * (1 - t) * t * midY + t * t * targetY;

                // 2. 3D旋转:绕X和Y轴同时旋转,模拟金币翻转
                const rotateY = 360 * 2 * progress; // 绕Y轴旋转2圈
                const rotateX = 180 * progress; // 绕X轴旋转1圈

                // 3. 缩放+透明度:近大远小,落地时缩小消失
                const scale = progress > 0.7 ? 1 - (progress - 0.7) / 0.3 * 0.8 : 1;
                const opacity = progress > 0.8 ? 1 - (progress - 0.8) / 0.2 : 1;

                // 4. 应用样式
                coin.style.left = x - 12 + 'px';
                coin.style.top = y - 12 + 'px';
                coin.style.transform = `rotateY(${rotateY}deg) rotateX(${rotateX}deg) scale(${scale})`;
                coin.style.opacity = opacity;

                if (progress < 1) {
                    requestAnimationFrame(animate);
                } else {
                    // 动画结束:回收金币 + 落地反馈
                    recycleCoin(coin);
                    
                    // 数字更新+抖动效果
                    coinCountEl.textContent = coinCount;
                    coinCountEl.style.transform = 'scale(1.3)';
                    coinBoxEl.style.transform = 'scale(1.1)';
                    
                    setTimeout(() => {
                        coinCountEl.style.transform = 'scale(1)';
                        coinBoxEl.style.transform = 'scale(1)';
                    }, 150);
                }
            }

            requestAnimationFrame(animate);
        }
    </script>
</body>
</html>

尾迹 / 拖影效果

在金币飞行路径上生成短暂的淡金色小圆点,模拟速度感:

// 在animate函数里添加
if (progress < 0.9) {
    const trail = document.createElement('div');
    trail.style.cssText = `
        position: fixed;
        left: ${x-6}px;
        top: ${y-6}px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255,223,79,0.6);
        pointer-events: none;
        opacity: 0.6;
        z-index: 998;
    `;
    document.body.appendChild(trail);
    // 尾迹逐渐消失
    setTimeout(() => trail.remove(), 100);
}

音效反馈

添加金币飞行和落地的音效,这里用 Web Audio API 简单实现:

// 初始化音频上下文
const audioCtx = new (window.AudioContext || window.webkitAudioContext)();

// 飞行音效(高音调)
function playFlySound() {
    const oscillator = audioCtx.createOscillator();
    const gainNode = audioCtx.createGain();
    oscillator.connect(gainNode);
    gainNode.connect(audioCtx.destination);
    oscillator.frequency.value = 800;
    oscillator.type = 'sine';
    gainNode.gain.setValueAtTime(0.1, audioCtx.currentTime);
    gainNode.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 0.1);
    oscillator.start(audioCtx.currentTime);
    oscillator.stop(audioCtx.currentTime + 0.1);
}

// 落地音效(清脆的叮声)
function playLandSound() {
    const oscillator = audioCtx.createOscillator();
    const gainNode = audioCtx.createGain();
    oscillator.connect(gainNode);
    gainNode.connect(audioCtx.destination);
    oscillator.frequency.value = 1200;
    oscillator.type = 'sine';
    gainNode.gain.setValueAtTime(0.2, audioCtx.currentTime);
    gainNode.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 0.15);
    oscillator.start(audioCtx.currentTime);
    oscillator.stop(audioCtx.currentTime + 0.15);
}

// 在createFlyingCoin里调用飞行音效,在动画结束时调用落地音效

把单个点击修改成 鼠标在屏幕任意位置点击都会生成金币(鼠标点哪里,金币就从哪里飞出来)

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>超逼真金币落袋(鼠标任意点击)</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            height: 100vh;
            background: #1a1a4e;
            overflow: hidden;
            user-select: none;
            position: relative;
        }
        /* 顶部金币UI */
        .top-bar {
            position: fixed;
            top: 20px;
            left: 0;
            width: 100%;
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 0 20px;
            z-index: 10;
        }
        .coin-box {
            display: flex;
            align-items: center;
            background: rgba(255,255,255,0.1);
            border-radius: 999px;
            padding: 6px 12px;
            gap: 8px;
            transition: transform 0.1s ease;
        }
        .coin-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #ffdf4f, #ffb700);
            box-shadow: 0 0 8px #ffd000;
        }
        .coin-count {
            color: white;
            font-size: 28px;
            font-weight: bold;
            font-family: sans-serif;
            transition: transform 0.15s ease;
        }
        /* 飞行动画金币 */
        .flying-coin {
            position: fixed;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: radial-gradient(circle at 30% 30%, #ffdf4f, #ffb700);
            box-shadow: 0 0 10px #ffd000;
            pointer-events: none;
            z-index: 999;
            transform-style: preserve-3d;
            perspective: 500px;
        }
    </style>
</head>
<body>
    <!-- 顶部金币UI -->
    <div class="top-bar">
        <div class="coin-box" id="coinBox">
            <div class="coin-icon"></div>
            <span class="coin-count" id="coinCount">844</span>
        </div>
    </div>

    <script>
        const coinCountEl = document.getElementById('coinCount');
        const coinBoxEl = document.getElementById('coinBox');
        let coinCount = 844;
        let targetRect;

        // 金币对象池
        const coinPool = [];
        const maxCoins = 20;

        // 更新目标位置
        function updateTargetRect() {
            const coinIcon = document.querySelector('.coin-icon');
            targetRect = coinIcon.getBoundingClientRect();
        }
        window.addEventListener('load', updateTargetRect);
        window.addEventListener('resize', updateTargetRect);

        // ✅ 关键:鼠标在屏幕任意位置点击 → 生成金币
        document.addEventListener('click', (e) => {
            const count = Math.floor(Math.random() * 3) + 3;
            for (let i = 0; i < count; i++) {
                setTimeout(() => {
                    const offsetX = (Math.random() - 0.5) * 60;
                    const offsetY = (Math.random() - 0.5) * 60;
                    createFlyingCoin(e.clientX + offsetX, e.clientY + offsetY);
                }, i * 50);
            }
            coinCount += count;
        });

        // 从对象池获取金币
        function getCoinFromPool() {
            if (coinPool.length > 0) {
                return coinPool.pop();
            }
            const coin = document.createElement('div');
            coin.className = 'flying-coin';
            return coin;
        }

        // 回收金币
        function recycleCoin(coin) {
            if (coinPool.length < maxCoins) {
                coin.style.display = 'none';
                coinPool.push(coin);
            } else {
                coin.remove();
            }
        }

        function createFlyingCoin(startX, startY) {
            const coin = getCoinFromPool();
            coin.style.display = 'block';
            coin.style.left = startX - 12 + 'px';
            coin.style.top = startY - 12 + 'px';
            document.body.appendChild(coin);

            const targetX = targetRect.left + targetRect.width / 2 - 12 + (Math.random() - 0.5) * 10;
            const targetY = targetRect.top + targetRect.height / 2 - 12 + (Math.random() - 0.5) * 10;

            const duration = 0.5 + Math.random() * 0.3;
            const arcHeight = 60 + Math.random() * 60;
            const startTime = performance.now();

            function animate(currentTime) {
                const elapsed = (currentTime - startTime) / 1000;
                const progress = Math.min(elapsed / duration, 1);
                const easeProgress = 1 - Math.pow(1 - progress, 3);

                // 抛物线轨迹
                const t = easeProgress;
                const midY = Math.min(startY, targetY) - arcHeight;
                const x = startX + (targetX - startX) * t;
                const y = (1 - t) * (1 - t) * startY + 2 * (1 - t) * t * midY + t * t * targetY;

                // 3D旋转
                const rotateY = 720 * progress;
                const rotateX = 360 * progress;
                const scale = progress > 0.7 ? 1 - (progress - 0.7) / 0.3 * 0.8 : 1;
                const opacity = progress > 0.8 ? 1 - (progress - 0.8) / 0.2 : 1;

                coin.style.left = x - 12 + 'px';
                coin.style.top = y - 12 + 'px';
                coin.style.transform = `rotateY(${rotateY}deg) rotateX(${rotateX}deg) scale(${scale})`;
                coin.style.opacity = opacity;

                if (progress < 1) {
                    requestAnimationFrame(animate);
                } else {
                    recycleCoin(coin);
                    coinCountEl.textContent = coinCount;
                    
                    // 抖动反馈
                    coinCountEl.style.transform = 'scale(1.3)';
                    coinBoxEl.style.transform = 'scale(1.1)';
                    setTimeout(() => {
                        coinCountEl.style.transform = 'scale(1)';
                        coinBoxEl.style.transform = 'scale(1)';
                    }, 150);
                }
            }
            requestAnimationFrame(animate);
        }
    </script>
</body>
</html>

另一种效果如图:

先上代码
 

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>金币落袋效果 预览</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            height: 100vh;
            background: #0b1020;
            overflow: hidden;
            user-select: none;
        }
        /* 钱袋 */
        .bag {
            position: fixed;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 120px;
            z-index: 10;
        }
        /* 金币 */
        .coin {
            position: fixed;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: radial-gradient(circle, #ffdf4f, #ffb700);
            box-shadow: 0 0 12px #ffd000;
            pointer-events: none;
            transition: all 0.8s cubic-bezier(0.15, 0.6, 0.3, 1);
        }
    </style>
</head>
<body>
    <div class="bag">💰</div>

    <script>
        const bag = document.querySelector('.bag');
        let bagRect;

        // 更新钱袋位置
        function setBagPos() {
            bagRect = bag.getBoundingClientRect();
        }
        window.addEventListener('load', setBagPos);
        window.addEventListener('resize', setBagPos);

        // 点击生成金币
        document.addEventListener('click', e => {
            createCoin(e.clientX, e.clientY);
        });

        function createCoin(x, y) {
            const coin = document.createElement('div');
            coin.className = 'coin';
            coin.style.left = x - 16 + 'px';
            coin.style.top = y - 16 + 'px';
            document.body.appendChild(coin);

            // 目标:钱袋中心
            const targetX = bagRect.left + bagRect.width / 2 - 16;
            const targetY = bagRect.top + bagRect.height / 2 - 16;

            requestAnimationFrame(() => {
                coin.style.left = targetX + 'px';
                coin.style.top = targetY + 'px';
                coin.style.transform = 'rotate(1080deg) scale(0.1)';
                coin.style.opacity = 0;
            });

            // 销毁节点
            setTimeout(() => coin.remove(), 800);
        }
    </script>
</body>
</html>

自定义参数调整效果代码

/* 金币大小 */
width: 30px; height: 30px; 

/* 动画时长(越快数值越小) */
transition: all 0.6s; 

/* 钱袋大小 */
font-size: 100px; 

/* 金币颜色(金色系可修改) */
background: radial-gradient(circle, #ffd700 0%, #ffcc00 50%, #e6b800 100%);

连续点击批量生成金币,可修改代码:

// 点击生成5个随机金币
document.addEventListener('click', (e) => {
    for(let i=0; i<5; i++){
        // 随机偏移位置
        const offsetX = (Math.random() - 0.5) * 50;
        const offsetY = (Math.random() - 0.5) * 50;
        createCoin(e.clientX + offsetX, e.clientY + offsetY);
    }
});

Unity学习笔记之用粒子系统实现类似金币飞入金币条动画效果 耗时两天半终于完成了这个功能!先来看看最终效果! 其中粒子速度,粒子数量,扩散效果等参数都可以在粒子系统参数里调整~总之就是都是可控的!美术想要啥效果让他们自己调去! 首先来讲一下用粒子系统来做这个的好处!首先就是效果好,其次就是参数可控,并且效率极高,粒子是有自己独立线程的,由unity自己进行优化,如果不用粒子系统用ugui来写这个效果的话就要面临网格重建,打破批处理而且效果不好,所以我还是选择粒子系统来完成这个需求。 好了现在来讲一下具体实现步骤... 阅读详情

相关推荐

从零开始:如何用Python手绘波特图并分析电路稳定性

本文详细介绍了如何使用Python绘制波特图并分析电路稳定性,涵盖从基础理论到实际应用的完整流程。通过NumPy和Matplotlib实现频域分析,包括RC低通滤波器和RLC带通滤波器的案例,以及相位裕度计算等高级技巧,为电子工程师提供了一套高效的电路分析解决方案。

hhh00的博客 381

Unity3D-代码控制粒子移动或者按照预定的路径移动(ParticleSystem)

参考:http://blog.csdn.net/pz789as/article/details/54573621 今天在做项目中,发现很多时候我们需要做一个金币移动效果。 比如,点击某个按钮之后,按钮附近出现各种零散的金币,然后他们都会向着显示金币的框框飞。 一般如果按钮都是固定的话,那么可以直接使用一个例子系统,然后调整好方向和速度,就可以达到要求!但是呢,有时候我们需要在很多地方都...

苏小败在路上 1万+

「Debug R」在从名字空间‘XVector’中出口方法时发现了不是S4通用的函数‘parallelSlotNames’...

每当R语言版本更新,Bioconductor的版本随之更替的时候,总会有一些神奇的报错会出现,比如说下面这种。 Error: package or namespace load failed for ‘GenomicRanges’: 在从名字空间‘XVector’中出口方法时发现了不是S4通用的函数‘parallelSlotNames’ 如果读中文读不懂,我们可以把它翻译成英文。 packa...

xuzhougeng blog 2007

Unity3D 制作“神庙逃亡”吃金币后金币飞出屏幕效果

自己做了一个小的跑酷游戏,单是生硬的吃金币效果不是太好看,所以就像做一个类似于“神庙逃亡”中吃金币后金币飞出屏幕的动态效果。 如图:

郑斌的专栏 6462

图像修复的万能模型:用Instruct-IPT统一解决去雨、去雾、去模糊三大难题

从原理到实战,你已经掌握了Instruct-IPT的核心逻辑和使用方法。它不仅能一站式解决多种图像退化问题,还能通过文本指令灵活控制,是图像恢复领域的“多面手”。现在,不妨找几张有雨雪、雾霾、模糊问题的图像,用Instruct-IPT亲手试试效果。当你看到模糊的图像变得清晰,被雨雾遮挡的细节重新浮现时,你会真切感受到这项技术的魅力。后续还可以尝试调整文本指令的描述方式,看看模型的响应有什么变化——探索的过程,就是你技术进阶的最好见证。

m0_71589036的博客 229

【深度学习|语义分割之UNet】如何使用ResNet50 作为 U-Net 网络的骨干网络(backbone)并使用预训练的 ResNet50 模型。附代码及解读。

【深度学习|语义分割之UNet】如何使用ResNet50 作为 U-Net 网络的骨干网络(backbone)并使用预训练的 ResNet50 模型。附代码及解读。

985小水博的摸鱼日常 3098

金币掉落效果

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_34399060的博客 1622

Python爬虫实战:构建高校研究生招生信息聚合系统

python@dataclass"""招生简章实体"""degree_type: str = "" # 硕士/博士"""转换为字典"""return {@dataclass"""专业目录实体"""college: str = "" # 学院major_code: str = "" # 专业代码major_name: str = "" # 专业名称research_direction: str = "" # 研究方向。

2201_76125261的博客 1958

Python 批量提取 HTML 中的链接:含本地文件、字符串、网页 URL

本文介绍使用 Free Spire.Doc for Python 从 HTML 中提取超链接的实用方案。通过将 HTML 加载为文档对象模型,利用其对 <a> 标签的结构化解析能力,遍历 FieldHyperlink 对象获取锚文本与 URL。核心优势在于一套代码可同时处理 HTML 与 Word 文档,适用于文档归档、内容审计等混合场景。需注意免费版存在段落与表格数量限制(500段/25表),且加载时应启用 XHTMLValidationType.none 以兼容不规范格式。对于字符串或网页来源的

Eiceblue的专栏 365

【HAL库】STM32CubeMX开发----STM32F407----ETH+LWIP----TCPclient客户端

STM32F407开发板 为TCPclient客户端,PC端 为TCPserver服务端,相互之间的发送和接收实验。

MQ0522的博客 3054

基于STM32设计的智能水产养殖系统(华为云IOT)(152)

当前设计的智能水产养殖系统主控芯片采用STM32F103RCT6,可以实现对水位、水温、水混浊度和PH值等参数的监测和控制,并且支持定时投喂功能。通过连接华为云物联网平台,将传感器数据上传到服务器,并通过Qt设计的Android手机APP来获取设备上传的数据,从而实现对养殖环境的远程监测和控制。

8842

HTML 零基础入门到企业实战全套教程【第十一章 11.5 学习总结与后续进阶路线

这一节我们做 HTML 阶段完整复盘,同时给大家一条贴合企业招聘标准、不走弯路的进阶路线:HTML → CSS → JavaScript → Vue / React,帮你把基础和就业技能衔接起来,避开新手最容易踩的 “跳过基础硬啃框架” 大坑。

wuzuhuzhanlang的专栏 313

TenserRt平台SMOKE 3D目标检测部署完整教程:从理论到实践

本教程详细介绍了在RK3588平台上部署SMOKE 3D目标检测模型的完整流程。SMOKE是一种创新的单阶段单目3D检测方法,通过关键点估计直接预测3D目标信息,有效解决了深度信息缺失等挑战。文章从理论基础出发,解析了SMOKE的核心算法和网络架构,包括DLA-34主干网络和关键点中心化策略。同时提供了详细的Docker环境配置、模型导出到ONNX格式的实践指南,以及TensorRT引擎构建和性能优化的关键技术要点。该教程为开发者在嵌入式平台上实现高效3D目标检测提供了完整的技术参考。

LXY_LOVE36的博客 379

HTML 零基础入门到企业实战|9.5 新手开发高频 Bug 汇总与排错思路

本节整理一线开发里新手最高频踩坑的 HTML Bug,附带错误示例、原因、修复方案,最后给一套标准化排错流程,以后遇到页面异常,不再靠瞎猜试错。

wuzuhuzhanlang的专栏 498

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

霍尼韦尔SoftMaster使用说明

霍尼韦尔SoftMaster使用说明

HTML 零基础入门到企业实战全套教程【第十一章 进阶拓展】1.3 主流前端框架前置知识铺垫

框架底层依旧是 DOM、事件、布局、表单、浏览器渲染这套原生机制。原生基础不牢,学框架只是背 API,很难独立排错、读懂源码、应对面试和企业项目。

wuzuhuzhanlang的专栏 676

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

HTML 零基础入门到企业实战【第十一章 11.4】前端面试高频 HTML 知识点总结

很多同学学完 HTML 基础,写页面没问题,但是一到面试就卡壳。面试官考察 HTML,早就不只是问 “标签有哪些”,重点看语义化理解、页面渲染原理、可访问性、企业开发规范、兼容性、性能优化。

wuzuhuzhanlang的专栏 552

温度PID控制PLC程序

温度PID稳定控制程序,适用于欧姆龙PLC,对其他PLC也具有很大参考价值

前端学习|HTML、CSS 与 jQuery 实践:选择器、DOM 读写、表单值与 Flex 布局

本文梳理 HTML、CSS 与 jQuery 实践:区分源码、DOM 与 jQuery 对象;对比文本、HTML 与表单值读写,区分属性、样式与按钮表单;说明浏览器解析修正与 Flex 主轴、交叉轴对齐规则。

Brookty的博客 401

浏览器访问本地html和服务器html的流程

浏览器访问本地 HTML 和访问服务器上的 HTML,表面上看都是在浏览器地址栏输入一个地址,然后显示网页。浏览器直接从本地磁盘读取文件。浏览器通过 HTTP 协议向服务器发送请求,服务器返回 HTML 文件。从本地读取很简单,直接读取然后渲染就可以了。

d3582077的专栏 232

answer-me-with-html 实测

摘要(≤150字): 实测显示,answer-me-with-html 在 Codex 上使输出 token 减少约 2.5 倍(非宣传的 8 倍),因模型手写 HTML 更简洁且任务差异所致。草稿由模型生成,脚本渲染为离线网页,支持时序图、表格等组件,无外部依赖。虽有写作检查与安全策略,但组件名拼错会无声失败,存在隐患。整体提升效率,但效果受模型与任务影响,需谨慎验证输出。

guopeiAI 591

把图片塞进 HTML:Base64 内联的适用场景

把图片塞进 HTML:Base64 内联的适用场景——按实际场景给出可执行的做法与避坑要点。

xie88101802的博客 221

身份证正反面打印版HTML

身份证正反面打印模板。

白高林的专栏 12

HTML attribute 和 DOM property,根本不是一回事

HTML attribute 与 DOM property 本质不同:前者是标记中的字符串值,后者是 JS 对象的类型化属性。如 disabled="false" 仍禁用,因布尔属性仅看存在性;value attribute 是默认值,input.value 才是当前值,且受“脏值标记”影响。React 和 Vue 的表单处理也基于此区分:受控组件通过 value + onChange 控制当前值,非受控用 defaultValue 定义初始值,核心均操作 DOM property 而非 attribute

程序员蜡笔熊的博客 118

App Inventor WebViewer 显示动态生成的 HTML 白屏?真机与网页版差异一次讲清

App Inventor WebViewer 显示动态生成的 HTML 白屏?真机与网页版差异一次讲清 问题背景 不少从 Thunkable、Kodular 迁移过来的朋友都踩过同一个坑:应用在积木里 动态拼接出一段 HTML (比如根据用户数据算出来的表格),把它塞给 WebViewer 显示。在网页版、在线预览、甚至把 HTML 粘贴到 Chrome 里

AppInventor2中文网(https://www.fun123.cn)技术。 256

OPUS XML 可视化工具:把光谱 XML 一键转成可点击的 HTML 页面

opus-xml-viewer-skill 是一款开源工具,可将 Bruker OPUS 导出的 XML 光谱文件一键转为可交互的单文件 HTML。支持缩放、悬停读数、点击钉点、寻峰、多数据块叠加对比与参数筛选,无需 OPUS 软件即可查看光谱。项目解析了 XML 中常见坑点(如横轴需自算、属性写法不一),并内置三重校验确保可靠性。在 168 个真实文件上验证,全部成功转换,适用于 PAT 与实验室光谱快速查看与分享。

小张的技术分享博客 300

学习C#开源报表组件Seal Report(49:LINQ数据源使用示例——HTML文件)

学习基于LINQ数据源从在线HTML网页中抓取数据的基本方式

gc_2299的博客 34
上一篇: 在 Vue 3 中使用 Pinia 配合 pinia-plugin-persistedstate 插件时调用 $reset() 方法可能会遇到‌持久化状态未同步更新‌或‌组合式 API 中无法直接使用
下一篇: Vue3 + ECharts 实现地图显示,深蓝色科技风地图、涟漪点、向上连线 ,标签
蜡台
博客等级 码龄19年 2157粉丝 382原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

蜡台

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值