nonoroazoro 最近的时间轴更新
nonoroazoro's repos on GitHub
TypeScript · 481 人关注
vscode-syncing
:zap: VSCode Extension - Sync all of your VSCode settings across multiple devices.
TypeScript · 16 人关注
typescript-react-boilerplate
:ghost: Minimal example for React with TypeScript.
TypeScript · 8 人关注
diff-match-patch-typescript
🚁 TypeScript port of diff-match-patch.
JavaScript · 8 人关注
firefox
Customized Extensions, Scripts, UserChromeJS and Rules of Firefox.
TypeScript · 6 人关注
eslint-config-zoro
ESLint Configuration with VERY STRICT RULES :anger:, supporting vanilla JavaScript and Typescript.
JavaScript · 5 人关注
simplest-react-redux-example
A very simple Redux + React example for beginners (Support Hot Module Replacement, including Redux reducers :v:)
JavaScript · 4 人关注
docusaurus-plugin-less
Provides support for Less to Docusaurus 2
JavaScript · 4 人关注
string-searching
Fast string searching algorithms.
CSS · 4 人关注
Tiny-InoReader
A Simple Customized Style for InoReader.
TypeScript · 4 人关注
virtualized-list
A virtualized list written in vanilla JavaScript.
JavaScript · 3 人关注
webpack-boilerplate
Minimal HMR example for Webpack & React
TypeScript · 2 人关注
react-fxxking-hooks
Some useful react hooks...
2 人关注
rpi-mongo
:whale: MongoDB Dockerfile for Raspberry Pi for automated build.
Python · 1 人关注
dive-into-python
1 人关注
rpi-nginx
:whale: nginx Dockerfile for Raspberry Pi for automated build.
TypeScript · 1 人关注
typescript-react-boilerplate-snowpack
:ghost: Minimal example for React with TypeScript.
Rust · 0 人关注
996.ICU
Repo for counting stars and contributing. Press F to pay respect to glorious developers.
JavaScript · 0 人关注
alpha-beta
Shell · 0 人关注
AutoBuild-OpenWrt
Build OpenWrt using GitHub Actions | 使用 GitHub Actions 编译 OpenWrt | 感谢P3TERX的项目源码|感谢KFERMercer的项目源码
Java · 0 人关注
BILIBILI-HELPER
B站,哔哩哔哩(Bilibili)自动签到投币工具,每天轻松获取65经验值,支持每日自动投币,银瓜子兑换硬币,领取大会员福利,大会员月底给自己充电等功能。呐!赶快和我一起成为Lv6吧!
JavaScript · 0 人关注
code
JavaScript · 0 人关注
movie-board
Re-design and implement Douban Movie with React and Redux.
Java · 0 人关注
proxyee-down
http下载工具,基于http代理,支持多连接分块下载
TypeScript · 0 人关注
react-virtuoso
The most powerful virtual list component for React
JavaScript · 0 人关注
simple-redux
0 人关注
Thunderstore
Thunderstore is a mod database and API for downloading mods
CSS · 0 人关注
Tiny-Douban
A Simple Customized Style for Douban.
CSS · 0 人关注
Tiny-Twitter
JavaScript · 0 人关注
typescript-node-boilerplate
Minimal example for Node in TypeScript.
JavaScript · 0 人关注
webpack.js.org
New repository for webpack documentation and more!
nonoroazoro

nonoroazoro

🏢  Alibaba
V2EX 第 102751 号会员,加入于 2015-03-06 10:22:24 +08:00
nonoroazoro 最近回复了
2021-01-13 11:04:20 +08:00
回复了 cweijan 创建的主题 程序员 Autohotkey 编辑器 for vscode
加油 继续更新啊
@wly19960911 通过传递 instance 作为参数的话确实可以这么判断。不过你也可以直接用 interface 来定义参数,然后利用 type guard 来简单判断是 A 是 Aa 还是 Ab。

不过总之换汤不换药,好不到哪里去,哈哈,毕竟 TS 的重载是 compile time 而非 runtime 的。
2018-11-28 09:55:26 +08:00
回复了 hrong 创建的主题 程序员 Windows 平台上应用软件安装自动化
DISM 应该能满足你的要求。
@wly19960911 你说的对啊,实际上 TS 重载的只是函数签名,编译后只有一个函数,你可以认为它的重载是“假”的。但同时,这个“假”的重载并不代表它就是不可用的,和“真”重载相比,各有优缺点吧。
@wly19960911 TS 的重载确实得靠自己判断来实现,但是因为在有 definition 的情况下,调用方能很明确的知道自己调用的方法和签名,在一些情况下还是很有用的。
最基本的区别不就是面向对象的区别么。比如最简单的 ES Module 与静态类的区别,然后是继承、派生、重载的区别,然后更复杂一点就是设计上的区别,比如如何实现控制反转( IoC )等等。
2018-11-27 17:39:54 +08:00
回复了 alwayshere 创建的主题 程序员 为防采集,目前有哪些 js 检测 headless 浏览器的方法?
只要 headless 做的足够完善,想要在内部检测理论上不可能。
因为 TypeScript 是 JavaScript 的超集,并且加上了类型系统(可选),一举两得,你不会后悔的。
从来都是 Firefox 阿,开发也一样。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1064 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms · UTC 19:08 · PVG 03:08 · LAX 12:08 · JFK 15:08
Developed with CodeLauncher
♥ Do have faith in what you're doing.