摘要: 1、查看本机TypeScript版本,可以使用npm view typescript version 2、查看TypeScript所有可以使用的版本,npm view typescript versions 3、如果想要查看typescript不同环境下的版本,可以使用npm info typesc 阅读全文
posted @ 2023-02-21 14:59 盘思动 阅读(547) 评论(0) 推荐(0) 编辑
摘要: 在上面的例子中,endsWith 方法被用来检查字符串 str 是否以感叹号结尾, 并将结果赋值给变量 endsWithExclamation。由于 str 确实以感叹号结尾,因此 endsWithExclamation 的值为 true。 需要注意的是,endsWith 方法是区分大小写的。如果需 阅读全文
posted @ 2023-02-21 09:03 盘思动 阅读(35) 评论(0) 推荐(0) 编辑