notebook
首页自定义链接
多级目录
  • 子菜单1
  • 子菜单2
首页自定义链接
多级目录
  • 子菜单1
  • 子菜单2
  1. 3cs
  • 目录
  • 1study
    • 9nuclear_english
    • moose
    • moose_analysis
    • NUSOL_FI_JFNK
    • relap5
    • relap5_analysis
  • 3cs
    • 0cs
    • 1android
    • 1linux
    • 1web
    • 1windows
    • 2cpp
    • 2html
    • 2javascript
    • 2shellscript
    • 3gitboook
    • 3markdown
    • 4gdb
    • 4git
    • 4mysql
    • 4regex
    • 5vim
    • 5vscode
  • 9me
    • 0read
    • 1book
    • test
  1. 3cs

2javascript

目录#

[TOC]

基础#

console.log("bird");
pop() pop out the last element
push() push somthing to the end of the array
map(..)
Creates a new array by applying the callback function to every element of the starting array.
filter()
const staffNames = ["Nick", "", "Jacky", "", "Philena", "Leo"];
const validNames = staffNames.filter(name => name !== "");
// validNames = ["Nick", "Jacky", "Philena", "Leo"]
[...]symbol,can be used to copy array.
'[...array]' will unpacked the array elements into the new array.
array = [1, 2, 3];
let copiedArray2Times = [...array, ...array,2];//[1,2,3,1,2,3,2]
=== judge equal elements of the same type
== judge with force type transformation
(2== '2' is ture)
anonymous function
Syntax: (parameters) => output;
modify(array, x => x+2)
class

脚本#

自动统计脚本#

up主投稿视频时长#

1.
使用方法:https://www.bilibili.com/video/BV1LV4y1g77U (代码已更新为全自动一键统计,如有错误,欢迎大家指正。)
2.
如果网络不佳建议把第20行 setInterval() 的数字调大。该行是点击下一页与统计下一页数据的时间间隔,默认值为400毫秒,网络不佳可能导致计算时网页还未成功刷新,计算出错。
3.
改编自 https://www.52pojie.cn/thread-1517520-1-1.html 在此表示感谢。

全自动版 #

半自动版#

无需移动鼠标位置,手动控制刷新速度。每一次点击确定键即可同时完成一页视频的数据统计和刷新下一页。(点击过快同样会出现数据不准的情况。)

视频合集时长#

(支持任意集数之间,支持倍速计算)
使用方法:B站分集视频教程时长统计脚本_哔哩哔哩_bilibili
转载自 https://www.52pojie.cn/thread-1517520-1-1.html
,在此表示感谢。
修改于 2025-08-13 16:06:35
上一页
2html
下一页
2shellscript
Built with