跳至内容

燕鸥博客

  • 首页
  • 燕鸥监控
  • 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年12月8日

    30秒学会 Python 片段 – Most frequent element

    Returns the most frequent element in a list. Use set() to get the unique values in lst. Use max() to...

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

    30秒学会 JavaScript 片段 – Understanding the “this” keyword in JavaScript

    What is this? In JavaScript, the this keyword refers to the object that is currently executing the c...

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

    30秒学会 React 片段 – React useOnWindowScroll hook

    Executes a callback whenever the window is scrolled. Use the useRef() hook to create a variable, lis...

    进一步了解
    • 30秒学会 React 片段
    2022年12月7日

    30秒学会 Python 片段 – Date from ISO format

    Converts a date from its ISO-8601 representation. Use datetime.datetime.fromisoformat() to convert t...

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

    30秒学会 JavaScript 片段 – Pretty-print number of bytes

    Converts a number in bytes to a human-readable string. Use an array dictionary of units to be access...

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

    30秒学会 JavaScript 片段 – Closest numeric match

    Finds the closest number from an array. Use Array.prototype.reduce() to scan all elements of the arr...

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

    30秒学会 JavaScript 片段 – Get selected text

    Gets the currently selected text. Use Window.getSelection() and Selection.toString() to get the curr...

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

    30秒学会 React 片段 – React usePersistedState hook

    Returns a stateful value, persisted in localStorage, and a function to update it. Use the useState()...

    进一步了解
    • 30秒学会 React 片段
    2022年12月4日

    30秒学会 JavaScript 片段 – Cycle generator

    Creates a generator, looping over the given array indefinitely. Use a non-terminating while loop, th...

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

    30秒学会 JavaScript 片段 – Remove whitespaces

    Returns a string with whitespaces removed. Use String.prototype.replace() with a regular expression ...

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

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

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