答案:三种方法(typeof、constructor、Object.prototype.toString.call())

解析:

①typeof

typeof('123') === "string" // true

typeof '123' === "string" // true

②constructor

'123'.constructor === String // true

③Object.prototype.toString.call()

Object.prototype.toString.call('123') === '[object String]' // true

参与互动

最新文章

  1. python写红包的原理流程包含random,lambda其中的使用和见简单介绍
  2. Resharper 检测所有NullReferenceExceptions(空指针)
  3. flume 1.4的介绍及使用示例
  4. problem-record-mysql
  5. OMG点菜系统
  6. RAD 版本迁移工具,不怕升级麻烦了。
  7. Jsoncpp 数组的使用
  8. 洛谷P2320 鬼谷子的钱袋
  9. leetcode学习笔记--开篇
  10. Eclipse的修改编码插件使用
  11. 编程是一项需要时间来掌握的技能(Anders的经验)
  12. 清除缓存、开启IO统计
  13. 【opengl】OpenGL中三维物体显示在二维屏幕上显示的变换过程
  14. javascript系列之DOM(三)---事件
  15. if和for的应用
  16. 关于“System.Data.OleDb.OleDbException,外部数据库驱动程序 (1) 中的意外错误。”的解决方案
  17. Linux 学习 (五) 压缩与解压缩命令
  18. synchronized同步方法《二》
  19. 【python基础】迭代器和生成器函数
  20. 织梦替换ueditor百度编辑器,支持图片水印 教程

热门文章

  1. linux忘记密码-进入单用户模式修改密码
  2. 链接mysql数据库报错:2003-cant connect to Mysql server on ‘localhost’(10038)
  3. TypeScript 学习之路
  4. 微信小程序 switch
  5. defineProperty和Proxy
  6. Java枚举类的学习
  7. npm vue-router安装报错
  8. 服务器IPMI地址及用户名密码
  9. python 的钩子函数
  10. 【文献阅读】An efficient motion planning based on grid map: Predicted Trajectory Approach with global path guiding