📜  如果参数是字符串类型,则显示 true - Javascript 代码示例
📅  最后修改于: 2022-03-11 15:02:42.453000             🧑  作者: Mango
代码示例1
if (typeof myVar === 'string' || myVar instanceof String)
// it's a string
else
// it's something else