程序员的知识教程库

网站首页 > 教程分享 正文

测试谷歌VS Code AI 编程插件 Gemini Code Assist

henian88 2025-03-05 16:17:41 教程分享 137 ℃ 0 评论

用 Claude Sonnet 3.7 的天气测试编码,让谷歌VS Code AI 编程插件 Gemini Code Assist 自动编程。

生成的文件在浏览器中的效果如下:(附源代码)

VS Code AI 编程插件 Gemini Code Assist




    
    
    Animated Weather Cards
    


    
Sun
Rain
Snow
Wind
<script> function switchWeather(condition) { const cards = document.querySelectorAll('.weather-card'); cards.forEach(card => { if(card.classList.contains(condition)) { card.style.display = 'flex'; }else{ card.style.display = 'none'; } }); } function showAll(){ const cards = document.querySelectorAll('.weather-card'); cards.forEach(card => { card.style.display = 'flex'; }); } showAll(); </script>

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表