Typescript是否有运算符重载? [英] Does Typescript have Operator Overloading?

查看:1110
本文介绍了Typescript是否有运算符重载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是打字稿中是否存在运算符重载,如果存在,我可以举个例子或链接,以供您阅读.

My question is if there is operator overloading in typescript, if it exists I could give an example or a link where you can read about it.

推荐答案

不存在.除非有明确的规范说明如何在纯JavaScript中实现,否则它几乎不可能存在.

No it does not exist. It is very unlikely that it will exist unless there is a clear Spec on how it might be implemented in Pure JavaScript.

这篇关于Typescript是否有运算符重载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆