ToolHub
中文
Dark
GitHub
返回首页
/
文本工具
/
代码行统计
加载中...
语言
自动
JS
TS
Python
Java
C++
Go
Rust
CSS
HTML
代码输入
// TypeScript example import { useState } from 'react'; /** * Counter component */ export default function Counter() { const [count, setCount] = useState(0); // Increment handler const inc = () => setCount(c => c + 1); return <button onClick={inc}>{count}</button>; }
统计结果
复制
总行数
14
100%
代码行
6
43%
注释行
5
36%
空白行
3
21%