跳至内容

燕鸥博客

  • 首页
  • 燕鸥监控
  • 30秒学会代码片段
    • 30秒学会 Angular 片段
    • 30秒学会 C# 片段
    • 30秒学会 CSS 片段
    • 30秒学会 Dart 片段
    • 30秒学会 Golang 片段
    • 30秒学会 JavaScript 片段
    • 30秒学会 PHP 片段
    • 30秒学会 Python 片段
    • 30秒学会 React 片段
    • 30秒面试问题
    • 30秒看不完系列
  • CSS技巧
  • 关于我们

标签

algorithm Angular animation array browser C# class collection components CSS Dart date dictionary effect event function generator Golang hooks input interactivity JavaScript lambda layout list math node object PHP promise Python random React recursion regexp state string tips type utility visual 代码片段 入门 进阶 高级
    2022年3月25日

    30秒学会 JavaScript 片段 – Can I validate an email address in JavaScript?

    One of the most frequent code snippet requests I get is about a function that can validate email add...

    进一步了解
    • 30秒学会 JavaScript 片段
    2022年3月24日

    30秒学会 Python 片段 – Sort dictionary by key

    Sorts the given dictionary by key. Use dict.items() to get a list of tuple pairs from d and sort it ...

    进一步了解
    • 30秒学会 Python 片段
    2022年3月23日

    30秒学会 JavaScript 片段 – Map a JavaScript array to an object

    A fairly common task I’ve written code for time and time again is mapping an array to an objec...

    进一步了解
    • 30秒学会 JavaScript 片段
    2022年3月23日

    30秒学会 Python 片段 – Days ago

    Calculates the date of n days ago from today. Use datetime.date.today() to get the current day. Use ...

    进一步了解
    • 30秒学会 Python 片段
    2022年3月19日

    30秒学会 JavaScript 片段 – Handle scroll stop

    Runs the callback whenever the user has stopped scrolling. Use EventTarget.addEventListener() to lis...

    进一步了解
    • 30秒学会 JavaScript 片段
    2022年3月19日

    30秒学会 JavaScript 片段 – Random element in array

    Gets a random element from an array. Use Math.random() to generate a random number. Multiply it by A...

    进一步了解
    • 30秒学会 JavaScript 片段
    2022年3月19日

    30秒学会 JavaScript 片段 – Capitalize the first letter of a JavaScript string

    As software engineers, we are often tasked with transforming data into presentable information. A co...

    进一步了解
    • 30秒学会 JavaScript 片段
    2022年3月18日

    30秒学会 CSS 片段 – Shifting Card

    Creates a card that shifts on hover. Set the appropriate perspective on the .container element to al...

    进一步了解
    • 30秒学会 CSS 片段
    2022年3月18日

    30秒学会 JavaScript 片段 – Calculate the Euclidean distance in JavaScript

    Definition The Euclidean distance between two points is the length of the line segment connecting th...

    进一步了解
    • 30秒学会 JavaScript 片段
    2022年3月15日

    30秒学会 JavaScript 片段 – Detect user color scheme preference in JavaScript

    The recently introduced prefers-color-scheme media query allows us to check if the user prefers a li...

    进一步了解
    • 30秒学会 JavaScript 片段
    第 59 页,共 154 页« 最新«...102030...5758596061...708090...»最旧 »

    燕鸥博客 © 2025. 版权所有。

    自豪地采用 WordPress. 主题设计 Alx.